June 6, 2017

Retrieving Data from a Deleted row in a Dataset

You would get the ‘DeletedRowInaccessibleException‘?when you try to access a deleted row in a dataset. To retrieve the information of a deleted row in a dataset, use the overloaded property of DataRow?object. So instead of deletedRow[columnname], use deletedRow[columnname, DataRowVersion.Original].