Describes the version of a System.Data.DataRow.
The System.Data.DataRowVersion values are used when retrieving the value found in a System.Data.DataRow using DataRow.Item(int) or the DataRow.GetChildRows(string) of the System.Data.DataRow object.
The System.Data.DataRowVersion informs you what version of a System.Data.DataRow exists. Versions change under the following circumstances:
After calling the System.Data.DataRow object's DataRow.BeginEdit method, if you change the value, the Current and Proposed values become available.
After calling the System.Data.DataRow object's DataRow.CancelEdit method, the Proposed value is deleted.
After calling the System.Data.DataRow object's DataRow.EndEdit method, the Proposed value becomes the Current value.
After calling the System.Data.DataRow object's DataRow.AcceptChanges method, the Original value becomes identical to the Current value.
After calling the System.Data.DataTable object's DataTable.AcceptChanges method, the Original value becomes identical to the Current value.
After calling the System.Data.DataRow object's DataRow.RejectChanges method, the Proposed value is discarded, and the version becomes Current.
Member Name | Description |
---|---|
Current |
The row contains current values. |
Default |
The default version of System.Data.DataRowState. For a DataRowState value of Added, Modified or Deleted, the default version is Current. For a System.Data.DataRowState value of Detached, the version is Proposed. |
Original |
The row contains its original values. |
Proposed |
The row contains a proposed value. |