Export (0) Print
Expand All

DataRowView Class

Represents a customized view of a DataRow.

System.Object
  System.Data.DataRowView

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

type DataRowView =  
    class 
        interface ICustomTypeDescriptor 
        interface IEditableObject 
        interface IDataErrorInfo 
        interface INotifyPropertyChanged 
    end

The DataRowView type exposes the following members.

  NameDescription
Public propertySupported by the XNA FrameworkDataViewGets the DataView to which this row belongs.
Public propertySupported by the XNA FrameworkIsEditIndicates whether the row is in edit mode.
Public propertySupported by the XNA FrameworkIsNewIndicates whether a DataRowView is new.
Public propertySupported by the XNA FrameworkItem(Int32)Gets or sets a value in a specified column.
Public propertySupported by the XNA FrameworkItem(String)Gets or sets a value in a specified column.
Public propertySupported by the XNA FrameworkRowGets the DataRow being viewed.
Public propertySupported by the XNA FrameworkRowVersionGets the current version description of the DataRow.
Top

  NameDescription
Public methodSupported by the XNA FrameworkBeginEditBegins an edit procedure.
Public methodSupported by the XNA FrameworkCancelEditCancels an edit procedure.
Public methodSupported by the XNA FrameworkCreateChildView(DataRelation)Returns a DataView for the child DataTable with the specified child DataRelation.
Public methodSupported by the XNA FrameworkCreateChildView(String)Returns a DataView for the child DataTable with the specified child DataRelation name.
Public methodCreateChildView(DataRelation, Boolean)Returns a DataView for the child DataTable with the specified DataRelation and parent..
Public methodCreateChildView(String, Boolean)Returns a DataView for the child DataTable with the specified DataRelation name and parent.
Public methodSupported by the XNA FrameworkDeleteDeletes a row.
Public methodSupported by the XNA FrameworkEndEditCommits 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.
Public methodSupported by the XNA FrameworkEqualsGets a value indicating whether the current DataRowView is identical to the specified object. (Overrides Object.Equals(Object).)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetHashCodeReturns the hash code of the DataRow object. (Overrides Object.GetHashCode().)
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventSupported by the XNA FrameworkPropertyChangedEvent that is raised when a DataRowView property is changed.
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetAttributesReturns a collection of custom attributes for this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetClassNameReturns the class name of this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetComponentNameReturns the name of this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetConverterReturns a type converter for this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetDefaultEventReturns the default event for this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetDefaultPropertyReturns the default property for this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetEditorReturns an editor of the specified type for this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetEvents()Returns the events for this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetEvents(Attribute[])Returns the events for this instance of a component with specified attributes.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetProperties()Returns the properties for this instance of a component.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetProperties(Attribute[])Returns the properties for this instance of a component with specified attributes.
Explicit interface implemetationPrivate methodSupported by the XNA FrameworkICustomTypeDescriptor.GetPropertyOwnerReturns an object that contains the property described by the specified property descriptor.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIDataErrorInfo.ErrorGets a message that describes any validation errors for the object.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIDataErrorInfo.ItemGets the error message for the property with the given name.
Top

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

A DataRowView 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 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.

The following example uses the RowVersion property to determine the state of a row in the DataRowView. (See RowFilter for another example using DataRowView.)

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

This type is safe for multithreaded read operations. You must synchronize any write operations.

Show:
© 2014 Microsoft