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

Introduction

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: 5/29/2007 6:30:41 AM
Comment:
welldone .. Sushila


you are too good.

do you have any idea about WebParts
tell me ok
Title: ASP.NET Gridview   
Name: Surya
Date: 5/25/2007 2:32:22 AM
Comment:
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-2014 ASPAlliance.com  |  Page Processed at 8/21/2014 10:02:11 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search