Skip to content

CreateNew

Adds a row, optionally maps initial values, then invokes a callback with the new row as this.

myDataTable.CreateNew(map?: object, callback?: (this: DataRow) => void):DataTable (DataRow, DataTable)

Parameters

object map optional
    Initial column values for the new row.

(this: DataRow) => void callback optional
    Callback executed with the new row as this.

Returns

The current table.

See Also