Describes the version of data in a DataRow.
[Visual Basic] Public Enum DataViewRowState [C#] public enum DataViewRowState [C++] public enum DataViewRowState
[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.
The DataViewRowState values are used either to retrieve a particular version of data in a DataRow, or to determine what versions exist.
Set the RowStateFilter property of the DataView to specify which version or versions of the data you want to view.
You can use the Boolean operator Or with the values to get more than one version.
The DataTable uses DataViewRowState in the Select method.
Member Name | Description |
---|---|
CurrentRows | Current rows, including unchanged, new, and modified rows. |
Deleted | Deleted row. |
ModifiedCurrent | Current version, which is a modified version of original data (see ModifiedOriginal). |
ModifiedOriginal | The original version (although it has since been modified and is available as ModifiedCurrent). |
New | New row. |
None | None. |
OriginalRows | Original rows, including unchanged and deleted rows. |
Unchanged | Unchanged row. |
Namespace: System.Data
Assembly: System.Data.dll
The following example sets the RowStateFilter to new and modified current rows.
[Visual Basic]
Private Sub GetNewAndCurrent() Dim dv As DataView Set dv = DataSet1.DefaultView dv.RowStateFilter = DataViewRowState.New Or _ DataViewRowState.ModifiedCurrent End Sub
System.Data Namespace | DataRow | DataSetView | DataView | Select | TableSetting | TableSettingsCollection