Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

SPGridView two level grouping

  Asked By: Bhavika Sutaria         Date: Dec 10, 2008      Category: Sharepoint      Views: 854
 

i,m developing webpart in which i,m using spgridview

i want two level grouping(month and date).

i have checked out spgridview but it allows only one level grouping.

can we archive two level grouping?

Tagged:        

 

1 Answer Found

 
Answer #1       Answered By: Josie Barron          Answered On: Dec 10, 2008       

The SPGridView is essentially a SharePoint specific copy of the standard ASP.NET
gridview control. To do two level  grouping you will have to use the ItemBound
event of the SPgridview to change the formatting of the rows and insert summary
or group header rows. The following article provides information on how to do
this with a standard gridview. The code provide should work for an SPgridview
as well.

msdn.microsoft.com/en-us/library/ms810274.aspx

 
Didn't find what you were looking for? Find more on SPGridView two level grouping Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].