Export (0) Print
Expand All

DataView.RowStateFilter Property

Gets or sets the row state filter used in the DataView.

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

public:
property DataViewRowState RowStateFilter {
	DataViewRowState get ();
	void set (DataViewRowState value);

/** @property */
public DataViewRowState get_RowStateFilter ()

/** @property */
public void set_RowStateFilter (DataViewRowState value)

public function get RowStateFilter () : DataViewRowState

public function set RowStateFilter (value : DataViewRowState)

Property Value

One of the DataViewRowState values.

Only rows that have been deleted by using the Delete method will have their RowStateFilter value set to Deleted. Those rows added using the AddNew method will similarly have the property set to Added.

NoteNote

 Using the Remove method of the DataRowCollection class does not mean that a row will be marked as Deleted. Use the Delete method instead to make sure that such rows can be viewed in the DataView.

New rows will also be visible when the RowStateFilter is set to ModifiedCurrent or CurrentRows.

Deleted rows will also be visible when the RowStateFilter is set to ModifiedOriginal and OriginalRows.

The following example creates a DataTable with a single column, and then changes the data and sets the RowStateFilter of the DataView 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

Community Additions

ADD
Show:
© 2014 Microsoft