SMART datagrid v.1 > Classes > GridDataSet
DataLudi.GridDataSet.onRowInserting event
It will be fired just before inserting the data row in row location.
If explicitly return false within this event handler, the requested inserting will be cancelled.
function onRowInserting (ds: GridDataSet, row: Integer, values: Array|Object): Boolean;
- Returns
- Boolean
- Parameters
- ds - GridDataSet.
The data set.
- row - Integer.
The location of row which is newly added within data set.
- values - Array|Object.
The array or JSON object in which contains values to be saved in the added row.
Code -1
ds.onRowInserting = function (ds, row, values) {
if (row >= 10 && values[0] != 'x') {
return false;
}
}
- See Also
- onRowInserted
- insertRow
- appendRow
- Examples
- Grid Data Set Edit