In my grid, I have a customer Delete Row button and I want to be able to capture the index of the row to be deleted so that I can update it's RowState in my DataTable.
What would be the best event handler in the Grid to use to record the current row selected? Also, what code should I use to capture the index of the row?
Many thanksJason
Hi Jason,
You can use the BeforeRowsDeleted event.
This event will give you the list of rows to be deleted. Each row has a ListIndex and a ListObject proeprty which will give you the index of the row in the data source and the underlying data row respectively.