Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
944
Deleting Rows
posted

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 thanks
Jason

  • 469350
    Offline posted

    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.