SMART datagrid v.1 > Classes > GridDataSet

Back  Forward

DataLudi.GridDataSet.onRowMoving  event

It will be fired just before moving the data row located in row to newRow location. 

If explicitly return false within this event handler, row moving will be cancelled. After moving, onRowMoved event will be fired. 

function onRowMoving (ds: GridDataSet, row: Integer, newRow: Integer): Boolean;
Returns
Boolean
Parameters
ds - GridDataSet.
The data set.
row - Integer.
The number of existing row.
newRow - Integer.
The number of row of which location will be moved.
Code -1
    dataset.onRowMoved = function (ds, row, newRow) {
        console.log(row + " th row will be moved to " + newRow + ".");
    }
See Also
onRowMoved
moveRow
Examples
Grid Data Set Edit