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.
Unfortunately, activation email could not send to your email. Please try again.

Custom headers in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

57175 Feb 27,2007 07:38 AM Mar 12,2007 04:33 PM Windows Forms 5
loading
Tags: GridControl
Anand
Asked On February 27, 2007 07:38 AM

Hi,
We are using Syncfusion Essential Studio 4.4.0.55 (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.

Header1.zip

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

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,
Haneef

Anand
Replied On February 28, 2007 08:42 AM

Hi,
I tried the following code
bmsdgHierarchyMapping.TableModel.Model.Rows.HeaderCount = 1;
bmsdgHierarchyMapping.TableModel.Model.CoveredRanges.Add(GridRangeInfo.Cells(0,0,1,4));
bmsdgHierarchyMapping.TableModel.Model.CoveredRanges.Add(GridRangeInfo.Cells(1,5,1,8));
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 06:43 PM

Hi Anand,

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

Best regards,
Haneef

Anand
Replied On March 11, 2007 04:18 AM

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 04:33 PM

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;
else
return true;
}
}

Best Regards,
Haneef

CONFIRMATION

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.

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.

;