C# Class System.Data.DataRowView

Inheritance: ICustomTypeDescriptor, IEditableObject, IDataErrorInfo, INotifyPropertyChanged
显示文件 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
DataRowView System.ComponentModel
GetColumnValue object
GetRecord int
HasRecord bool
ICustomTypeDescriptor System.ComponentModel.AttributeCollection
ICustomTypeDescriptor System.ComponentModel.EventDescriptor
ICustomTypeDescriptor System.ComponentModel.EventDescriptorCollection
ICustomTypeDescriptor System.ComponentModel.EventDescriptorCollection
ICustomTypeDescriptor System.ComponentModel.PropertyDescriptor
ICustomTypeDescriptor System.ComponentModel.PropertyDescriptorCollection
ICustomTypeDescriptor System.ComponentModel.PropertyDescriptorCollection
ICustomTypeDescriptor System.ComponentModel.TypeConverter
ICustomTypeDescriptor object
ICustomTypeDescriptor object
ICustomTypeDescriptor string
RaisePropertyChangedEvent void
SetColumnValue void
this stringIDataErrorInfo.System.ComponentModel

Public Methods

Method Description
BeginEdit ( ) : void
CancelEdit ( ) : void
CreateChildView ( DataRelation relation ) : DataView
CreateChildView ( DataRelation relation, bool followParent ) : DataView

Returns a System.Data.DataView for the child System.Data.DataTable with the specified System.Data.DataRelation.

CreateChildView ( string relationName ) : DataView
CreateChildView ( string relationName, bool followParent ) : DataView

CreateChildView(DataRelation)

Delete ( ) : void
EndEdit ( ) : void
Equals ( object other ) : bool Checks for same reference instead of equivalent DataView or Row. Necessary for ListChanged event handlers to use data structures that use the default to object.Equals(object) instead of object.ReferenceEquals to understand if they need to add a PropertyChanged event handler.
GetHashCode ( ) : int
this ( int ndx ) : object

Gets or sets a value in specified column.

Uses either DataRowVersion.Default or DataRowVersion.Original to access Row

this ( string property ) : object

Gets the specified column value or related child view or sets a value in specified column.

Private Methods

Method Description
DataRowView ( DataView dataView, DataRow row ) : System.ComponentModel
GetColumnValue ( DataColumn column ) : object
GetRecord ( ) : int
HasRecord ( ) : bool
ICustomTypeDescriptor ( ) : AttributeCollection
ICustomTypeDescriptor ( ) : System.ComponentModel.EventDescriptor
ICustomTypeDescriptor ( ) : EventDescriptorCollection
ICustomTypeDescriptor ( Attribute attributes ) : EventDescriptorCollection
ICustomTypeDescriptor ( ) : PropertyDescriptor
ICustomTypeDescriptor ( ) : PropertyDescriptorCollection
ICustomTypeDescriptor ( Attribute attributes ) : PropertyDescriptorCollection
ICustomTypeDescriptor ( ) : TypeConverter
ICustomTypeDescriptor ( PropertyDescriptor pd ) : object
ICustomTypeDescriptor ( Type editorBaseType ) : object
ICustomTypeDescriptor ( ) : string
RaisePropertyChangedEvent ( string propName ) : void
SetColumnValue ( DataColumn column, object value ) : void
this ( string colName ) : stringIDataErrorInfo.System.ComponentModel

Method Details

BeginEdit() public method

public BeginEdit ( ) : void
return void

CancelEdit() public method

public CancelEdit ( ) : void
return void

CreateChildView() public method

public CreateChildView ( DataRelation relation ) : DataView
relation DataRelation
return DataView

CreateChildView() public method

Returns a System.Data.DataView for the child System.Data.DataTable with the specified System.Data.DataRelation.
null or mismatch between and .
public CreateChildView ( DataRelation relation, bool followParent ) : DataView
relation DataRelation Specified .
followParent bool
return DataView

CreateChildView() public method

public CreateChildView ( string relationName ) : DataView
relationName string
return DataView

CreateChildView() public method

CreateChildView(DataRelation)
Unmatched .
public CreateChildView ( string relationName, bool followParent ) : DataView
relationName string Specified name.
followParent bool
return DataView

Delete() public method

public Delete ( ) : void
return void

EndEdit() public method

public EndEdit ( ) : void
return void

Equals() public method

Checks for same reference instead of equivalent DataView or Row. Necessary for ListChanged event handlers to use data structures that use the default to object.Equals(object) instead of object.ReferenceEquals to understand if they need to add a PropertyChanged event handler.
public Equals ( object other ) : bool
other object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

this() public method

Gets or sets a value in specified column.
Uses either DataRowVersion.Default or DataRowVersion.Original to access Row
when setting a value.
public this ( int ndx ) : object
ndx int Specified column index.
return object

this() public method

Gets the specified column value or related child view or sets a value in specified column.
when is ambigous. Unmatched when getting a value. Unmatched when setting a value. when setting a value.
public this ( string property ) : object
property string Specified column or relation name when getting. Specified column name when setting.
return object