get column index by column name

Is is possible to get the column index by column name?

Thanks!

1 Reply

AD Administrator Syncfusion Team June 7, 2007 03:49 PM UTC

There are some helper methods in the TableDescriptor that can help with this.

int field = this.gridGroupingControl1.TableDescriptor.NameToField("SomeName");
int colIndex = this.gridGroupingControl1.TableDescriptor.FieldToColIndex(field);

Loader.
Up arrow icon