SMART datagrid v.1 > Classes > GridDataSet

Back  Forward

DataLudi.GridDataSet.onRowMoving  event

在位于row的数据行被移动到newRow位置之前,将会触发这个事件。 

如果在这个事件处理器中明确返回false,就会取消行移动。 在移动之后,将会触发onRowMoved事件。 

function onRowMoving (ds: GridDataSet, row: Integer, newRow: Integer): Boolean;
Returns
Boolean
Parameters
ds - GridDataSet.
数据组。
row - Integer.
现有行号。
newRow - Integer.
将会移动的位置的行号。
Code -1
    dataset.onRowMoved = function (ds, row, newRow) {
        console.log(row + "第 个行将会被移动到" + newRow + "。");
    }
See Also
onRowMoved
moveRow
Examples
网格数据组编辑