JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the DataRow Class

The DataRow class represents a data row of data in a data table. Here is the inheritance hierarchy of this class:

Object
   DataRow

You can find the more notable public properties of DataRow objects in Table 22.31 and their more notable methods in Table 22.32. (This class has no non-inherited events.)

Table 22.31: Noteworthy public properties of DataRow objects.

Property

Means

HasErrors

Indicates if there are errors in the row.

Item

Gets/sets data in a specified column.

ItemArray

Gets/sets all the data in a row.

RowError

Gets/sets a row's error description.

RowState

Gets the current state of a row.

Table

Gets the table that contains this row.

Table 22.32: Noteworthy public methods of DataRow objects.

Method

Means

AcceptChanges

Accepts (commits) the changes made to the row.

BeginEdit

Begins an edit operation.

CancelEdit

Cancels the current edit operation.

ClearErrors

Clears the errors in the row.

Delete

Deletes the row.

EndEdit

Ends the current edit operation.

GetChildRows

Gets the row's child rows.

GetColumnError

Gets a column's error description.

GetColumnsInError

Gets the columns that have errors.

GetParentRow

Gets the parent row of a row.

GetParentRows

Gets the parent rows of a row.

IsNull

Indicates if a column contains a null value.

RejectChanges

Rolls back the changes made to the table since it was created or since the AcceptChanges method was called.

SetColumnError

Sets a column's error description.

SetParentRow

Sets the parent row of a row.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor