Destructor

The Destructor for the DataRow class is:

  • ~ DataRow();

The following table summarizes the functions each method performs in the DataRow class.

Table 1. DataRow Methods Summary

Method

Function

getColumnNames

Gets all the column names.

getColumnIndex

Gets the corresponding column index.

getColumnCount

Gets the number of columns.

get

Gets the value from the fields array by the column index in this DataRow.

get

Gets the value from the fields array by the column name in this DataRow.

merge

Merges the given DataTable and the current DataTable.

set

Sets the value for the corresponding column name for the DataRow. If the value for the name exists, the old value is replaced.

set

Sets the value for the corresponding column index for the DataRow. If the value for the name exists, the old value is replaced.

addChild

Adds a new DataRow to the named parent/child relationship. If the named relationship exists, the supplied DataRow will be appended to the existing DataRow Collection, otherwise a new Collection will be created with the supplied DataRow as its only element.

getChildren

Retrieves the child rows from a named relationship.

listChildNames

Retrieves all of the names of the named parent/child relationships.

setChildren

Sets the rows of a supplied, named parent/child relationship. If rows previously existed under this name, they will be returned to the caller.