System.Data.DataRowView Class

Represents a customized view of a System.Data.DataRow.

See Also: DataRowView Members


public class DataRowView : System.ComponentModel.ICustomTypeDescriptor, System.ComponentModel.IDataErrorInfo, System.ComponentModel.IEditableObject, System.ComponentModel.INotifyPropertyChanged


Whenever data is displayed, such as in a System.Windows.Forms.DataGrid control, only one version of each row can be displayed. The displayed row is a System.Data.DataRowView.

A System.Data.DataRowView can have one of four different version states: Default, Original, Current, and Proposed.

After invoking DataRow.BeginEdit on a System.Data.DataRow, any edited value becomes the Proposed value. Until either DataRowView.CancelEdit or DataRowView.EndEdit is invoked, the row has an Original and a Proposed version. If DataRowView.CancelEdit is invoked, the proposed version is discarded, and the value reverts to Original. If DataRowView.EndEdit is invoked, the System.Data.DataRowView no longer has a Proposed version; instead, the proposed value becomes the current value. Default values are available only on rows that have columns with default values defined.


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