SMART datagrid v.1 > Classes > GridDataSet

[ grids ver.1.3.8]   Back  Forward

DataLudi.GridDataSet.onRowsInserting  event

It will be called just before inserting multiple rows by calling insertRows, etc. 

If explicitly return Boolean false within this event handler, row inserting will be cancelled. And, just after inserting, onRowsInserted event will be fired. 

function onRowsInserting (ds: GridDataSet, row: Integer, rows: [Integer], start: Integer, count: Integer): Boolean;
Returns
Boolean
Parameters
ds - GridDataSet.
row - Integer.
rows - [Integer].
start - Integer.
count - Integer.
Code -1
    ds.onRowsInserting = function (ds, row, rows, start, count) {
        if (!$('#insertable')[0].checked) return false;
    };
See Also
onRowsInserted
Examples
Grid Data Set Edit