System.Data.DataViewRowState Enumeration

Describes the version of data in a System.Data.DataRow.

Syntax

[System.ComponentModel.Editor("Microsoft.VSDesigner.Data.Design.DataViewRowStateEditor, Microsoft.VSDesigner, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.Flags]
public enum DataViewRowState

Remarks

The System.Data.DataViewRowState values are used either to retrieve a particular version of data from a System.Data.DataRow, or to determine what versions exist.

Set the DataView.RowStateFilter property of the System.Data.DataView to specify which version or versions of data you want to view.

You can use the Boolean operator Or with the values to get more than one version.

The System.Data.DataTable uses System.Data.DataViewRowState in the DataTable.Select method.

Members

Member NameDescription
Added

A new row.

CurrentRows

Current rows including unchanged, new, and modified rows. By default, System.Data.DataViewRowState is set to CurrentRows.

Deleted

A deleted row.

ModifiedCurrent

A current version of original data that has been modified (see ModifiedOriginal).

ModifiedOriginal

The original version of the data that was modified. (Although the data has since been modified, it is available as ModifiedCurrent).

None

None.

OriginalRows

Original rows including unchanged and deleted rows.

Unchanged

An unchanged row.

Requirements

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