Getting Column Name from Column Index

Is there any way to get the column name from a column index?

For instance, in the TableControlCellClick, it gives me the arguments of column and row index. However, when I reorder the columns, they no longer match with the VisibleColumns collection.

How do I insure I get the correct column name that I clicked on?

1 Reply

JJ Jisha Joy Syncfusion Team October 28, 2009 09:39 AM UTC

Hi Jason,

Please refer the following code to get the column name from the column index.

this.gridGroupingControl1.TableDescriptor.Columns[this.gridGroupingControl1.TableDescriptor.ColIndexToField(columnIndex)].Name;

Please let me know if this helps.

Regards,
Jisha

Loader.
Up arrow icon