.NET Framework 4.6 and 4.5
Gets or sets the row state filter used in the DataView.
member RowStateFilter : DataViewRowState with get, set
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.
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.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0, 2.0, 1.0