CodeSnip: How to Group Data in the GridView Control
page 1 of 5
Published: 23 May 2007
In this article Sushila demonstrates how to group the data using the GRidView control.
by Sushila Bowalekar Patel
Average Rating: 
Views (Total / Last 10 Days): 51794/ 66


It is a very common requirement to Group the data based on particular column or cell data.

DataGrid, DataList or Repeater control have ItemDataBound event with some logic or we can use helper function to do the same.

GridView control definitely has the edge over the above controls. However, GridView control does not have ItemDataBound event that would help us identify the cell item and group the data. In this sample we will figure out which event of the GridView control to use as one of the solutions for grouping the data. As a second alternative we will use the old and reliable helper function to do the same for us.

View Entire Article

User Comments

Title: ASP.Net   
Name: Khalid mehmood
Date: 2007-05-29 6:30:41 AM
welldone .. Sushila

you are too good.

do you have any idea about WebParts
tell me ok
Title: ASP.NET Gridview   
Name: Surya
Date: 2007-05-25 2:32:22 AM
It is good but some methods i do not know. So, you should define the methods why you use them and what are their requirement.

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-05-20 4:10:43 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search