Deleting a DataBoundGrid row

I am trying to delete a user selected row from my grid, It seems to delete fine but then I must iterate through the remaining rows to change to "Stage Number" which is a col in the row. I get an "DeletedRowInaccessibleException", why is it still trying to access this row in the DataTable if it has been deleted?

1 Reply

AD Administrator Syncfusion Team May 23, 2005 05:38 PM UTC

Try calling DataTable.AcceptChanges before you iterate through your DataTable to see if that will take care of this problem. If you do not want to do this for some reason, then you should check the DataRow.RowState on each DataRow before working with it to make sure it has not been deleted.

Loader.
Up arrow icon