SMART datagrid v.1 > Classes > GridDataSet
DataLudi.GridDataSet.onRowsUpdating event
在通过调用updateRows而修改多个行之前,将会触发这个事件。
如果在这个事件处理器中明确返回Boolean false,就会取消行修改。 而且,在修改之后,将会触发onRowsUpdated事件。
function onRowsUpdating (ds: GridDataSet, row: Integer, rows: [Integer], start: Integer, count: Integer): Boolean;
- Returns
- Boolean
- Parameters
- ds - GridDataSet.
- row - Integer.
- rows - [Integer].
- start - Integer.
- count - Integer.
Code -1
ds.onRowsUpdating = function (ds, row, rows, start, count) {
if (!$('#updatable')[0].checked) return false;
};
- See Also
- onRowsUpdated
- updateRows
- Examples
- 网格数据组编辑