SMART datagrid v.1 > Classes > GridDataSet

Back  Forward

DataLudi.GridDataSet.onRowsMoving  event

It will be fired just before moving the rows as much as count from row row location to newRow location. 

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

function onRowsMoving (ds: GridDataSet, row: Integer, count: Integer, newRow: Integer): Boolean;
Returns
Boolean
Parameters
ds - GridDataSet.
The data set.
row - Integer.
The number of first data row of rows which will be moved.
count - Integer.
The number of row which is being moved.
newRow - Integer.
The location of row which will be moved.
Code -1
    dataset.onRowsMoving = function (ds, row, count, newRow) {
        if (row == 0) { 
            return false;
        }
    }
See Also
onRowsMoved
Examples
Grid Data Set Edit