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 How to get the current cell''s column Header name?

Thread ID:

Created:

Updated:

Platform:

Replies:

57010 Feb 23,2007 11:39 AM Feb 23,2007 08:44 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 23, 2007 11:39 AM

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

Thanks,

Administrator [Syncfusion]
Replied On February 23, 2007 08:35 PM

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 23, 2007 08:44 PM

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.

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.

;