AD
Administrator
Syncfusion Team
July 4, 2005 09:50 AM UTC
Do you want to know the index of the row to be deleted in the datasource? If so, try this call in the RecordDeleting event:
int index = e.Record.GetSourceIndex();
To get the grid column index of any field, you can use:
int field = this.gridGroupingControl1.TableDescriptor.NameToField("colName");
int gridIndex = this.gridGroupingControl1.TableDescriptor.FieldToColIndex(field);