Represents a customized view of a DataRow.
Assembly: System.Data (in System.Data.dll)
Thetype exposes the following members.
|DataView||Gets the DataView to which this row belongs.|
|IsEdit||Indicates whether the row is in edit mode.|
|IsNew||Indicates whether a is new.|
|Item(Int32)||Gets or sets a value in a specified column.|
|Item(String)||Gets or sets a value in a specified column.|
|Row||Gets the DataRow being viewed.|
|RowVersion||Gets the current version description of the DataRow.|
|BeginEdit||Begins an edit procedure.|
|CancelEdit||Cancels an edit procedure.|
|CreateChildView(DataRelation)||Returns a DataView for the child DataTable with the specified child DataRelation.|
|CreateChildView(String)||Returns a DataView for the child DataTable with the specified child DataRelation name.|
|Delete||Deletes a row.|
|EndEdit||Commits changes to the underlying DataRow and ends the editing session that was begun with BeginEdit(). Use CancelEdit() to discard the changes made to the DataRow.|
|Equals||Gets a value indicating whether the current is identical to the specified object. (Overrides Object.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Returns the hash code of the DataRow object. (Overrides Object.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
Whenever data is displayed, such as in a DataGrid control, only one version of each row can be displayed. The displayed row is a .
A can have one of four different version states: Default, Original, Current, and Proposed.
After invoking BeginEdit on a DataRow, any edited value becomes the Proposed value. Until either CancelEdit or EndEdit is invoked, the row has an Original and a Proposed version. If CancelEdit is invoked, the proposed version is discarded, and the value reverts to Original. If EndEdit is invoked, the 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.