NewRow

Creates a new DataRow in the DataTable.

Syntax

DataRow* newRow(DataTable* dataTable ) 

Parameter

  • Datatable - the DataTable to which this function applies

Results

Returns the new created DataRow.

Example

// Assume that dataTable is given here
DataRow* newDataRow;
int nRet;
newDataRow = newRow( dataTable );
setByIndex (newDataRow, 0 , "10535 Boyer Blvd");
setByIndex (newDataRow, 1 , "Austin");
setByIndex (newDataRow, 2 , "Texas");
nRet = addRow( dataTable, newDataRow);