SMART datagrid v.1 > Classes > GridDataSet

Back  Forward

DataLudi.GridDataSet.onRowInserted  event

在插入数据行之后,将会触发这个事件。 

在触发这个事件之后,将会触发onRowCountChanged事件。 而且,在插入之前,将会触发onRowInserting事件。 

function onRowInserted (ds: GridDataSet, row: Integer);
Returns
Void
Parameters
ds - GridDataSet.
数据组。
row - Integer.
新添加的数据行号。
Code -1
    ds.onRowInserted = function (ds, row) {
        console.log("New row is added at " + row);
    }
See Also
onRowCountChanged
onRowInserting
insertRow
appendRow
Examples
网格数据组编辑