This documentation is archived and is not being maintained.

DataViewRowState Enumeration

Describes the version of data in a DataRow.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

public enum class DataViewRowState
/** @attribute FlagsAttribute() */ 
public enum DataViewRowState
public enum DataViewRowState

 Member nameDescription
Supported by the .NET Compact FrameworkAddedA new row. 
Supported by the .NET Compact FrameworkCurrentRowsCurrent rows including unchanged, new, and modified rows. 
Supported by the .NET Compact FrameworkDeletedA deleted row. 
Supported by the .NET Compact FrameworkModifiedCurrentA current version, which is a modified version of original data (see ModifiedOriginal). 
Supported by the .NET Compact FrameworkModifiedOriginalThe original version (although it has since been modified and is available as ModifiedCurrent). 
Supported by the .NET Compact FrameworkNoneNone. 
Supported by the .NET Compact FrameworkOriginalRowsOriginal rows including unchanged and deleted rows. 
Supported by the .NET Compact FrameworkUnchangedAn 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.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0