Skip to content

Ensure

Ensures a row, or every row in an input array, is active and applies the supplied values.

myDataTable.Ensure(row: ( DataRow | Array<DataRow> | "null" ), map?: object, initMap?: object):( DataRow | Array<DataRow> )

Parameters

( DataRow | Array<DataRow> | "null" ) row
    An existing row, an array of rows, or null to create a row.

object map optional
    Values applied to every ensured row.

object initMap optional
    Values applied only when a new row is created.

Returns

The ensured row, or an array when the input is an array.

Remarks

Existing deleted rows are undeleted. Changes remain in memory until DataTable.Save is called.

See Also