We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Grouping headers in a GridDataBoundGrid

Hello,

I'm using a GridDataBoundGrid pointed at a DataTable with dates as columns (month/year e.g. '4/2007') and rows of data underneath. I'd like to add another header row above the default header row that groups the columns into years (e.g. one long cell that says '2006' would be above the rows for 1/2006 through 12/2006).

I understand that I can add a new header row below the existing one using Model.Rows.HeaderCount and group them using Model.CoveredRanges. However the extra row I add comes in BELOW the default header. How do I put that extra header row ABOVE the default, all the way at the top of the grid?

Thanks!

Chris

3 Replies

AD Administrator Syncfusion Team March 16, 2007 07:22 PM UTC

Hi Chris,

Please try the attached sample and let me know if this helps.
http://websamples.syncfusion.com/samples/Grid.Windows/GDBGExtraHeader/main.htm

Best regards,
Haneef


CS Chetan Seshadri August 1, 2012 04:15 PM UTC

Hi Haneef,

I have the same problem as the one stated above wherein I am not able to create a Column Header above the already existing Column Header in the Windows GridDataBoundGrid.

Also the link given does not work.

Could you please let me know how to solve this?

 

Thanks,

Chetan



KB Kalaiarasan B Syncfusion Team August 2, 2012 11:31 AM UTC

Hi Chetan,

Please find the sample attached in the belwo link

This sample is available in our dashboard in the following location

GridDataBoundGrid - > Customization -> Multi Header demo

Regards,
Kalai

Loader.
Live Chat Icon For mobile
Up arrow icon