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

Getting the Row/Column index position of a deleted row

Hi, I am using a GridGroupingControl. One of the columns in my GGC has a checked dropdownlist. If i delete one row, i use the RecordDeleting event handler. How do i get the row index of the row i''m deleting and the Row/column index of the column that has the checked dropdownlist. Regards David

1 Reply

AD Administrator Syncfusion Team July 4, 2005 04:50 AM

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);

Loader.
Live Chat Icon For mobile
Up arrow icon