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

Row header in GGC

Thread ID:





88735 Aug 10,2009 01:44 PM UTC Aug 11,2009 05:31 AM UTC WinForms 1
Tags: Grouping
Rafal Kasprzyk
Asked On August 10, 2009 01:44 PM UTC

I have one quick question. How can I easly set first column in my data source to be a row reader in ggc?


Jisha Joy [Syncfusion]
Replied On August 11, 2009 05:31 AM UTC

Hi Rafal,

If your intension is to have the first column of data source to be appeared as the row header column, one way to achieve the desired behavior by hiding the default row header and by handling the QueryCellStyleInfo event make the first column as Header. See the code and sample:

this.gridGroupingControl1.TableModel.Properties.RowHeaders = false;
this.gridGroupingControl1.QueryCellStyleInfo += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);

void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity.ColIndex == 1)
e.Style.CellType = "Header";


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.

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