System.Data.DeletedRowInaccessibleException Class

Represents the exception that is thrown when an action is tried on a System.Data.DataRow that has been deleted.

See Also: DeletedRowInaccessibleException Members


public class DeletedRowInaccessibleException : DataException


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:

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.


Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,