NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataViewRowState Enumeration

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.

Remarks

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.

Members

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.

Requirements

Namespace: System.Data

Assembly: System.Data.dll

Example [Visual Basic]

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

See Also

System.Data Namespace | DataRow | DataSetView | DataView | Select | TableSetting | TableSettingsCollection