SMART datagrid v.1 > Classes > GridDataSet

Back  Forward

DataLudi.GridDataSet.onRowUpdating  event

It will be fired just before changing the data row. 

If explicitly return false within this event handler, changing will not proceed. After changing the row, onRowUpdated event will be fired. 

function onRowUpdating (ds: GridDataSet, row: Integer, values: Array|Object): Boolean;
Returns
Boolean
Parameters
ds - GridDataSet.
The data set.
row - Integer.
The number of data row which will be updated.
values - Array|Object.
New values which will be changed. Array or JSON object.
Code -1
    ds.onRowUpdating = function (ds, row, values) {
        if (values[0] != 'value1') {
            return false;
        }    
    }
See Also
onRowUpdated
Examples
Grid Data Set Edit