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 / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Supress repeating values in gridview

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Swede.Swede@gmail.com - 10 Sep 2007 21:39 GMT
Hello!

Customer wants a gridview displaying individuals who have taken part
in courses. The gridview should be sorted by the name of the
participant. If a person has taken part in several courses, the name
should only be stated once. Example:
Course             Participant   Date
Skateboarding  John Doe     May 1st 2007
Sailing             Mary Doe     June 5th 2007
Skateboarding                    June 10th 2007
Parasailing       Ken Foll      June 8th 2007

Since Mary has taken part in two courses (sailing and skateboarding)
her name should be stated only once.
How can I achieve this?

TIA

Regards!
Eliyahu Goldin - 10 Sep 2007 22:27 GMT
Handle the gridview's PreRender event. In the event loop through the Rows
collection, detect rows with the same Participant values and replace
repeating values with empty string.

Signature

Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin

> Hello!
>
[quoted text clipped - 15 lines]
>
> Regards!

Rate this thread:







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.