SMART datagrid v.1 > Classes > GridDataSet

[ grids ver.1.3.8]   Back  Forward

DataLudi.GridDataSet.onRowsUpdating  event

It will be fired just before updating multiple rows by calling updateRows

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

function onRowsUpdating (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.onRowsUpdating = function (ds, row, rows, start, count) {
        if (!$('#updatable')[0].checked) return false;
    };
See Also
onRowsUpdated
updateRows
Examples
Grid Data Set Edit