SMART datagrid v.1 > Classes > GridDataSet
DataLudi.GridDataSet.onRowInserting event
在row位置插入数据行之前,将会触发这个事件。
如果在这个事件处理器中明确返回false,就会取消请求的插入。
function onRowInserting (ds: GridDataSet, row: Integer, values: Array|Object): Boolean;
- Returns
- Boolean
- Parameters
- ds - GridDataSet.
数据组。
- row - Integer.
新添加到数据组内的行的位置。
- values - Array|Object.
包含将会被储存在添加行的值的数组或JSON对象。
Code -1
ds.onRowInserting = function (ds, row, values) {
if (row >= 10 && values[0] != 'x') {
return false;
}
}
- See Also
- onRowInserted
- insertRow
- appendRow
- Examples
- 网格数据组编辑