Represents the exception that is thrown when an action is tried on a System.Data.DataRow that has been deleted.
See Also: DeletedRowInaccessibleException Members
To delete a System.Data.DataRow, use the DataRow.Delete method of a System.Data.DataRow class. As soon as you have deleted a row, any attempts to modify it will generate the System.Data.DeletedRowInaccessibleException.
The System.Data.DeletedRowInaccessibleException is thrown when you use one of the following properties or methods that try to get or set the value of a deleted System.Data.DataRow:
DataRow.Item(int) property
DataRow.ItemArray property
DataRow.BeginEdit method
Use the DataRow.RowState of a System.Data.DataRow class to determine whether a row has been deleted. If it has been deleted, you can use the DataRow.Original method to retrieve it because deleted rows have no values available for the DataRow.Current state.