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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom headers in GGC

Thread ID:





57175 Feb 27,2007 12:38 PM UTC Mar 12,2007 08:33 PM UTC WinForms 5
Tags: GridControl
Asked On February 27, 2007 12:38 PM UTC

We are using Syncfusion Essential Studio (GridGroupingControl).
We need to show first two rows as headers (each header covering few columns) and then show the data in following rows in the GridGroupingControl. Pls see the attached sheet. We can get the second row header from the datasource but my worry is how can I set the first row as header. Many Thanks in advance.


Administrator [Syncfusion]
Replied On February 27, 2007 05:21 PM UTC

Hi Anand,

Refer this thread. You may try to have an extra row header set up through the custom section above the column header. See if that helps.

Best Regards,

Replied On February 28, 2007 01:42 PM UTC

I tried the following code
bmsdgHierarchyMapping.TableModel.Model.Rows.HeaderCount = 1;
bmsdgHierarchyMapping.TableModel.Model.CoveredRanges.Add(GridRangeInfo.Cells(1, 9, 1, 12));

So I should get the first 4 columns as a single merged cell and rest four columns from fifth column to eight column as second merged cell. But I get just one header spanning from col 1 to col4 and col5 to col 12 are shown as white space. Please help.

Administrator [Syncfusion]
Replied On February 28, 2007 11:43 PM UTC

Hi Anand,

Please try the attached sample and let me know if this helps.

Best regards,

Replied On March 11, 2007 08:18 AM UTC

Hi Haneef,
Thanks for the help. Just one query. How to hide the caption section where the no of items shown in grid is shown. I tried to modify the CustomEngine.cs file but it did not work. Please help in which lines need to be modifed.Many Thanks in advance.

Administrator [Syncfusion]
Replied On March 12, 2007 08:33 PM UTC

Hi Anand,

You would have to derive the ChildTable and override the IsChildVisible method to return the false value for the CaptionSection. Please let me know if this helps.

public override bool IsChildVisible(Element el)
if (this.IsTopLevelGroup )
if (el is CaptionSection )
return false;
return true;

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon