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

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

Thanks,

2 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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

Loader.
Up arrow icon