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. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon