System.Data.DataView.RowStateFilter Property

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

Syntax

[System.ComponentModel.DefaultValue(System.Data.DataViewRowState.CurrentRows)]
public DataViewRowState RowStateFilter { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

Note:

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

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

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

Requirements

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