//way 1
this.gridGroupingControl1.TableDescriptor.FieldToColIndex(fildname);
//way2 this.gridGroupingControl1.TableDescriptor.ColIndexToField(colindex);
this.gridGroupingControl1.TableDescriptor.FieldToColIndex(fildname);
i think it takes an int and not a string. i would like to get the index from the columnname
int index = this.gridGroupingControl1.TableDescriptor.VisibleColumns.IndexOf("ColumnName");
int id = this.gridGroupingControl1.TableDescriptor.Columns.IndexOf("ColumnName");
Sample
http://www.syncfusion.com/downloads/support/forum/103015/ze/DataGrid1575736822
Regards,
Piruthiviraj