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.

GGC StackedHeaderRows

Thread ID:





88464 Jul 24,2009 11:22 AM Jul 27,2009 07:19 AM Windows Forms 1
Tags: GridControl
Lorenzo Grassi
Asked On July 24, 2009 11:22 AM

Hi, we are using StackedHeaderRows to show headers on a GGC with 4 group levels.
We want an header on top of the table and a group header on top of level 4, that must have different captions.

We have tried to set ChildGroupOptions.ShowStackedHeaders to true, and in this way we get headers for all levels.
Is there a way to show the header only on the top table header and on the last level?
And also we want assign different labels to the top header and the group header


Jisha Joy [Syncfusion]
Replied On July 27, 2009 07:19 AM

Hi Lorenzo,

To have stacked headers also in the child groups, set ChildGroupOptions.ShowStackedHeaders to true, provided that ShowColumnHeaders is also set to true.

this.gridGroupingControl1.ChildGroupOptions.ShowColumnHeaders = true;
this.gridGroupingControl1.ChildGroupOptions.ShowStackedHeaders = true;

Also you could hide the stacked column headers for specific column groups by setting the GroupByOptions.ShowStackedHeaders property to false. See the code:

this.gridGroupingControl1.TableDescriptor.Columns["OrderID"].GroupByOptions.ShowStackedHeaders = false;

Please let me know if this helps.



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.