Collapse the table of content
Expand the table of content
Expand Minimize

DataViewRowState Enumeration


Describes the version of data in a DataRow.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

type DataViewRowState

Member nameDescription

A new row.


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


A deleted row.


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


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




Original rows including unchanged and deleted rows.


An unchanged row.

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

Set the RowStateFilter property of the 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 DataTable uses DataViewRowState in the Select method.

In the following example DataTable is created with a single column. The data is changed, and the RowStateFilter of the DataView is set to display different row sets, depending on the DataViewRowState.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft