C# Class System.Data.DataRow

Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
BeginEdit void
BeginEditInternal bool
CancelEdit void
CheckColumn void
CheckForLoops void
CheckInTable void
ClearError void
CopyValuesIntoStore int
EndEdit void
GetColumnValues object[]
GetColumnValues object[]
GetCurrentRecordNo int
GetDataColumn DataColumn
GetDefaultRecord int
GetDefaultRowVersion DataRowVersion
GetKeyValues object[]
GetKeyValues object[]
GetNestedParentCount int
GetNestedParentRow DataRow
GetOriginalRecordNo int
GetProposedRecordNo int
GetRecordFromVersion int
GetRecordState DataViewRowState
HasChanges bool
HasKeyChanged bool
HasKeyChanged bool
HaveValuesChanged bool
HaveValuesChanged bool
ResetLastChangedColumn void
RowErrorChanged void
SetKeyValues void
SetNestedParentRow void
SetParentRowToDBNull void
SetParentRowToDBNull void
VerifyValueFromStorage void

Public Methods

Method Description
AcceptChanges ( ) : void

Commits all the changes made to this row since the last time was called.

ClearErrors ( ) : void

Clears the errors for the row, including the and errors set with

Delete ( ) : void

Deletes the row.

GetChildRows ( DataRelation relation ) : System.Data.DataRow[]

Gets the child rows of this using the specified .

GetChildRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]

Gets the child rows of this using the specified and the specified

GetChildRows ( string relationName ) : System.Data.DataRow[]
GetChildRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
GetColumnError ( DataColumn column ) : string

Gets the error description of the specified .

GetColumnError ( int columnIndex ) : string

Gets the error description for the column specified by index.

GetColumnError ( string columnName ) : string

Gets the error description for a column, specified by name.

GetColumnsInError ( ) : System.Data.DataColumn[]

Gets an array of columns that have errors.

GetParentRow ( DataRelation relation ) : DataRow

Gets the parent row of this using the specified .

GetParentRow ( DataRelation relation, DataRowVersion version ) : DataRow

Gets the parent row of this using the specified and .

GetParentRow ( string relationName ) : DataRow
GetParentRow ( string relationName, DataRowVersion version ) : DataRow
GetParentRows ( DataRelation relation ) : System.Data.DataRow[]

Gets the parent rows of this using the specified .

GetParentRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]

Gets the parent rows of this using the specified .

GetParentRows ( string relationName ) : System.Data.DataRow[]
GetParentRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
HasVersion ( DataRowVersion version ) : bool

Gets a value indicating whether a specified version exists.

IsNull ( DataColumn column ) : bool

Gets a value indicating whether the specified contains a null value.

IsNull ( DataColumn column, DataRowVersion version ) : bool
IsNull ( int columnIndex ) : bool

Gets a value indicating whether the column at the specified index contains a null value.

IsNull ( string columnName ) : bool

Gets a value indicating whether the named column contains a null value.

RejectChanges ( ) : void

Rejects all changes made to the row since was last called.

SetAdded ( ) : void
SetColumnError ( DataColumn column, string error ) : void

Sets the error description for a column specified as a .

SetColumnError ( int columnIndex, string error ) : void

Sets the error description for a column specified by index.

SetColumnError ( string columnName, string error ) : void

Sets the error description for a column specified by name.

SetModified ( ) : void
SetParentRow ( DataRow parentRow ) : void
SetParentRow ( DataRow parentRow, DataRelation relation ) : void

Sets current row's parent row with specified relation.

this ( DataColumn column ) : object

Gets or sets the data stored in the specified .

this ( DataColumn column, DataRowVersion version ) : object

Gets the specified version of data stored in the specified .

this ( int columnIndex ) : object

Gets or sets the data stored in the column specified by index.

this ( int columnIndex, DataRowVersion version ) : object

Gets the data stored in the column, specified by index and version of the data to retrieve.

this ( string columnName ) : object

Gets or sets the data stored in the column specified by name.

this ( string columnName, DataRowVersion version ) : object

Gets the specified version of data stored in the named column.

Protected Methods

Method Description
DataRow ( DataRowBuilder builder ) : System.Collections

Initializes a new instance of the DataRow. Constructs a row from the builder. Only for internal usage..

SetNull ( DataColumn column ) : void

Sets the specified column's value to a null value.

Private Methods

Method Description
BeginEdit ( ) : void
BeginEditInternal ( ) : bool
CancelEdit ( ) : void
CheckColumn ( DataColumn column ) : void
CheckForLoops ( DataRelation rel ) : void
CheckInTable ( ) : void

Throws a RowNotInTableException if row isn't in table.

ClearError ( DataColumn column ) : void
CopyValuesIntoStore ( ArrayList storeList, ArrayList nullbitList, int storeIndex ) : int
EndEdit ( ) : void
GetColumnValues ( DataColumn columns ) : object[]
GetColumnValues ( DataColumn columns, DataRowVersion version ) : object[]
GetCurrentRecordNo ( ) : int
GetDataColumn ( string columnName ) : DataColumn
GetDefaultRecord ( ) : int
GetDefaultRowVersion ( DataViewRowState viewState ) : DataRowVersion
GetKeyValues ( DataKey key ) : object[]
GetKeyValues ( DataKey key, DataRowVersion version ) : object[]
GetNestedParentCount ( ) : int
GetNestedParentRow ( DataRowVersion version ) : DataRow
GetOriginalRecordNo ( ) : int
GetProposedRecordNo ( ) : int
GetRecordFromVersion ( DataRowVersion version ) : int
GetRecordState ( int record ) : DataViewRowState
HasChanges ( ) : bool
HasKeyChanged ( DataKey key ) : bool
HasKeyChanged ( DataKey key, DataRowVersion version1, DataRowVersion version2 ) : bool
HaveValuesChanged ( DataColumn columns ) : bool
HaveValuesChanged ( DataColumn columns, DataRowVersion version1, DataRowVersion version2 ) : bool
ResetLastChangedColumn ( ) : void
RowErrorChanged ( ) : void
SetKeyValues ( DataKey key, object keyValues ) : void
SetNestedParentRow ( DataRow parentRow, bool setNonNested ) : void
SetParentRowToDBNull ( ) : void
SetParentRowToDBNull ( DataRelation relation ) : void
VerifyValueFromStorage ( DataColumn column, DataRowVersion version, object valueFromStorage ) : void

Method Details

AcceptChanges() public method

Commits all the changes made to this row since the last time was called.
public AcceptChanges ( ) : void
return void

ClearErrors() public method

Clears the errors for the row, including the and errors set with
public ClearErrors ( ) : void
return void

DataRow() protected method

Initializes a new instance of the DataRow. Constructs a row from the builder. Only for internal usage..
protected DataRow ( DataRowBuilder builder ) : System.Collections
builder DataRowBuilder
return System.Collections

Delete() public method

Deletes the row.
public Delete ( ) : void
return void

GetChildRows() public method

Gets the child rows of this using the specified .
public GetChildRows ( DataRelation relation ) : System.Data.DataRow[]
relation DataRelation
return System.Data.DataRow[]

GetChildRows() public method

Gets the child rows of this using the specified and the specified
public GetChildRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]
relation DataRelation
version DataRowVersion
return System.Data.DataRow[]

GetChildRows() public method

public GetChildRows ( string relationName ) : System.Data.DataRow[]
relationName string
return System.Data.DataRow[]

GetChildRows() public method

public GetChildRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
relationName string
version DataRowVersion
return System.Data.DataRow[]

GetColumnError() public method

Gets the error description of the specified .
public GetColumnError ( DataColumn column ) : string
column DataColumn
return string

GetColumnError() public method

Gets the error description for the column specified by index.
public GetColumnError ( int columnIndex ) : string
columnIndex int
return string

GetColumnError() public method

Gets the error description for a column, specified by name.
public GetColumnError ( string columnName ) : string
columnName string
return string

GetColumnsInError() public method

Gets an array of columns that have errors.
public GetColumnsInError ( ) : System.Data.DataColumn[]
return System.Data.DataColumn[]

GetParentRow() public method

Gets the parent row of this using the specified .
public GetParentRow ( DataRelation relation ) : DataRow
relation DataRelation
return DataRow

GetParentRow() public method

Gets the parent row of this using the specified and .
public GetParentRow ( DataRelation relation, DataRowVersion version ) : DataRow
relation DataRelation
version DataRowVersion
return DataRow

GetParentRow() public method

public GetParentRow ( string relationName ) : DataRow
relationName string
return DataRow

GetParentRow() public method

public GetParentRow ( string relationName, DataRowVersion version ) : DataRow
relationName string
version DataRowVersion
return DataRow

GetParentRows() public method

Gets the parent rows of this using the specified .
public GetParentRows ( DataRelation relation ) : System.Data.DataRow[]
relation DataRelation
return System.Data.DataRow[]

GetParentRows() public method

Gets the parent rows of this using the specified .
public GetParentRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]
relation DataRelation
version DataRowVersion
return System.Data.DataRow[]

GetParentRows() public method

public GetParentRows ( string relationName ) : System.Data.DataRow[]
relationName string
return System.Data.DataRow[]

GetParentRows() public method

public GetParentRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
relationName string
version DataRowVersion
return System.Data.DataRow[]

HasVersion() public method

Gets a value indicating whether a specified version exists.
public HasVersion ( DataRowVersion version ) : bool
version DataRowVersion
return bool

IsNull() public method

Gets a value indicating whether the specified contains a null value.
public IsNull ( DataColumn column ) : bool
column DataColumn
return bool

IsNull() public method

public IsNull ( DataColumn column, DataRowVersion version ) : bool
column DataColumn
version DataRowVersion
return bool

IsNull() public method

Gets a value indicating whether the column at the specified index contains a null value.
public IsNull ( int columnIndex ) : bool
columnIndex int
return bool

IsNull() public method

Gets a value indicating whether the named column contains a null value.
public IsNull ( string columnName ) : bool
columnName string
return bool

RejectChanges() public method

Rejects all changes made to the row since was last called.
public RejectChanges ( ) : void
return void

SetAdded() public method

public SetAdded ( ) : void
return void

SetColumnError() public method

Sets the error description for a column specified as a .
public SetColumnError ( DataColumn column, string error ) : void
column DataColumn
error string
return void

SetColumnError() public method

Sets the error description for a column specified by index.
public SetColumnError ( int columnIndex, string error ) : void
columnIndex int
error string
return void

SetColumnError() public method

Sets the error description for a column specified by name.
public SetColumnError ( string columnName, string error ) : void
columnName string
error string
return void

SetModified() public method

public SetModified ( ) : void
return void

SetNull() protected method

Sets the specified column's value to a null value.
protected SetNull ( DataColumn column ) : void
column DataColumn
return void

SetParentRow() public method

public SetParentRow ( DataRow parentRow ) : void
parentRow DataRow
return void

SetParentRow() public method

Sets current row's parent row with specified relation.
public SetParentRow ( DataRow parentRow, DataRelation relation ) : void
parentRow DataRow
relation DataRelation
return void

this() public method

Gets or sets the data stored in the specified .
public this ( DataColumn column ) : object
column DataColumn
return object

this() public method

Gets the specified version of data stored in the specified .
public this ( DataColumn column, DataRowVersion version ) : object
column DataColumn
version DataRowVersion
return object

this() public method

Gets or sets the data stored in the column specified by index.
public this ( int columnIndex ) : object
columnIndex int
return object

this() public method

Gets the data stored in the column, specified by index and version of the data to retrieve.
public this ( int columnIndex, DataRowVersion version ) : object
columnIndex int
version DataRowVersion
return object

this() public method

Gets or sets the data stored in the column specified by name.
public this ( string columnName ) : object
columnName string
return object

this() public method

Gets the specified version of data stored in the named column.
public this ( string columnName, DataRowVersion version ) : object
columnName string
version DataRowVersion
return object