Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / January 2008

Tip: Looking for answers? Try searching our database.

ASP.NET's new ListView Control: Custom Grouping?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
benji - 02 Jan 2008 21:21 GMT
Hi,

I'm investigating the new listview control. The grouping functionality is
very cool, but I don't want to simply group every x elements; i'd like to do
custom grouping (I want to say, start a new group if this record contains a
new value for field y as compared to the previous record). What I envision is
handling an event and issuing a command to the control after doing my own
check, saying "ok, start a new group." Is this possible? If not by handling
an event, perhaps via a derrived control? Any thoughts?

Best

-Ben
Nicholas Paldino [.NET/C# MVP] - 02 Jan 2008 21:40 GMT
Ben,

   Unfortunately, no, it doesn't seem like there is a way to do this.
Which is a shame, really, as I would think it would have been easy to expose
an interface which would be queried as to when a group changes.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi,
>
[quoted text clipped - 13 lines]
>
> -Ben
benji - 03 Jan 2008 16:16 GMT
Hi Nicholas,

Thanks for the reply. That is disapointing. I'd imagine that the code for
the control has something like:

if (currentrow % GroupItemCount == 0)
MarkNewGroup();

I hope someone is able to write a derrived class that modifies this. I tried
to open the assembly system.web.extensions.dll in ildasm but was having
difficulty opening GAC assemblies in the tool.

Thanks for the prompt answer, Nicholas.

-Ben

> Ben,
>
[quoted text clipped - 19 lines]
> >
> > -Ben

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.