C# Класс System.Data.DataRow

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AcceptChanges() публичный Метод

Commits all the changes made to this row since the last time was called.
public AcceptChanges ( ) : void
Результат void

ClearErrors() публичный Метод

Clears the errors for the row, including the and errors set with
public ClearErrors ( ) : void
Результат void

DataRow() защищенный Метод

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
Результат System.Collections

Delete() публичный Метод

Deletes the row.
public Delete ( ) : void
Результат void

GetChildRows() публичный Метод

Gets the child rows of this using the specified .
public GetChildRows ( DataRelation relation ) : System.Data.DataRow[]
relation DataRelation
Результат System.Data.DataRow[]

GetChildRows() публичный Метод

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
Результат System.Data.DataRow[]

GetChildRows() публичный Метод

public GetChildRows ( string relationName ) : System.Data.DataRow[]
relationName string
Результат System.Data.DataRow[]

GetChildRows() публичный Метод

public GetChildRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
relationName string
version DataRowVersion
Результат System.Data.DataRow[]

GetColumnError() публичный Метод

Gets the error description of the specified .
public GetColumnError ( DataColumn column ) : string
column DataColumn
Результат string

GetColumnError() публичный Метод

Gets the error description for the column specified by index.
public GetColumnError ( int columnIndex ) : string
columnIndex int
Результат string

GetColumnError() публичный Метод

Gets the error description for a column, specified by name.
public GetColumnError ( string columnName ) : string
columnName string
Результат string

GetColumnsInError() публичный Метод

Gets an array of columns that have errors.
public GetColumnsInError ( ) : System.Data.DataColumn[]
Результат System.Data.DataColumn[]

GetParentRow() публичный Метод

Gets the parent row of this using the specified .
public GetParentRow ( DataRelation relation ) : DataRow
relation DataRelation
Результат DataRow

GetParentRow() публичный Метод

Gets the parent row of this using the specified and .
public GetParentRow ( DataRelation relation, DataRowVersion version ) : DataRow
relation DataRelation
version DataRowVersion
Результат DataRow

GetParentRow() публичный Метод

public GetParentRow ( string relationName ) : DataRow
relationName string
Результат DataRow

GetParentRow() публичный Метод

public GetParentRow ( string relationName, DataRowVersion version ) : DataRow
relationName string
version DataRowVersion
Результат DataRow

GetParentRows() публичный Метод

Gets the parent rows of this using the specified .
public GetParentRows ( DataRelation relation ) : System.Data.DataRow[]
relation DataRelation
Результат System.Data.DataRow[]

GetParentRows() публичный Метод

Gets the parent rows of this using the specified .
public GetParentRows ( DataRelation relation, DataRowVersion version ) : System.Data.DataRow[]
relation DataRelation
version DataRowVersion
Результат System.Data.DataRow[]

GetParentRows() публичный Метод

public GetParentRows ( string relationName ) : System.Data.DataRow[]
relationName string
Результат System.Data.DataRow[]

GetParentRows() публичный Метод

public GetParentRows ( string relationName, DataRowVersion version ) : System.Data.DataRow[]
relationName string
version DataRowVersion
Результат System.Data.DataRow[]

HasVersion() публичный Метод

Gets a value indicating whether a specified version exists.
public HasVersion ( DataRowVersion version ) : bool
version DataRowVersion
Результат bool

IsNull() публичный Метод

Gets a value indicating whether the specified contains a null value.
public IsNull ( DataColumn column ) : bool
column DataColumn
Результат bool

IsNull() публичный Метод

public IsNull ( DataColumn column, DataRowVersion version ) : bool
column DataColumn
version DataRowVersion
Результат bool

IsNull() публичный Метод

Gets a value indicating whether the column at the specified index contains a null value.
public IsNull ( int columnIndex ) : bool
columnIndex int
Результат bool

IsNull() публичный Метод

Gets a value indicating whether the named column contains a null value.
public IsNull ( string columnName ) : bool
columnName string
Результат bool

RejectChanges() публичный Метод

Rejects all changes made to the row since was last called.
public RejectChanges ( ) : void
Результат void

SetAdded() публичный Метод

public SetAdded ( ) : void
Результат void

SetColumnError() публичный Метод

Sets the error description for a column specified as a .
public SetColumnError ( DataColumn column, string error ) : void
column DataColumn
error string
Результат void

SetColumnError() публичный Метод

Sets the error description for a column specified by index.
public SetColumnError ( int columnIndex, string error ) : void
columnIndex int
error string
Результат void

SetColumnError() публичный Метод

Sets the error description for a column specified by name.
public SetColumnError ( string columnName, string error ) : void
columnName string
error string
Результат void

SetModified() публичный Метод

public SetModified ( ) : void
Результат void

SetNull() защищенный Метод

Sets the specified column's value to a null value.
protected SetNull ( DataColumn column ) : void
column DataColumn
Результат void

SetParentRow() публичный Метод

public SetParentRow ( DataRow parentRow ) : void
parentRow DataRow
Результат void

SetParentRow() публичный Метод

Sets current row's parent row with specified relation.
public SetParentRow ( DataRow parentRow, DataRelation relation ) : void
parentRow DataRow
relation DataRelation
Результат void

this() публичный Метод

Gets or sets the data stored in the specified .
public this ( DataColumn column ) : object
column DataColumn
Результат object

this() публичный Метод

Gets the specified version of data stored in the specified .
public this ( DataColumn column, DataRowVersion version ) : object
column DataColumn
version DataRowVersion
Результат object

this() публичный Метод

Gets or sets the data stored in the column specified by index.
public this ( int columnIndex ) : object
columnIndex int
Результат object

this() публичный Метод

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
Результат object

this() публичный Метод

Gets or sets the data stored in the column specified by name.
public this ( string columnName ) : object
columnName string
Результат object

this() публичный Метод

Gets the specified version of data stored in the named column.
public this ( string columnName, DataRowVersion version ) : object
columnName string
version DataRowVersion
Результат object