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

GGC How to get the current cell''s column Header name?

Thread ID:





57010 Feb 23,2007 04:39 PM UTC Feb 24,2007 01:44 AM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On February 23, 2007 04:39 PM UTC

How can I determined what the column/field name is for a selected cell in GGC?


Administrator [Syncfusion]
Replied On February 24, 2007 01:35 AM UTC


Please refer to the following forum thread discusses the technique to retrieve the column name for the current cell being clicked. You can handle the same logic any cell events to retrieve the column name.

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,

Administrator [Syncfusion]
Replied On February 24, 2007 01:44 AM UTC


Try the below code, this will help you.

GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
GridTableCellStyleInfo style = this.gridGroupingControl1.TableControl.GetTableViewStyleInfo(cc.RowIndex, cc.ColIndex);
Console.WriteLine( style.TableCellIdentity.Column.Name );



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