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:

Created:

Updated:

Platform:

Replies:

57010 Feb 23,2007 04:39 PM UTC Feb 24,2007 01:44 AM UTC WinForms 2
loading
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?

Thanks,

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

Hi,

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.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=55258

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

Best regards,
Madhan

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

Hi,

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 );

Regards,
Rajagopal

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.

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

;