SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.isEditing  method

如果通过index而指定的数据单元格目前为编辑状态,就会返回true。 如果indexnull,就会返回聚焦单元格的状态。 

function isEditing (index: CellIndex): Boolean;
Returns
Boolean
Parameters
index - CellIndex. required.
Code -1
    var index = grid.focusedIndex();
    if (index && grid.isEditing(index)) {
        dataset.commit();
    }
See Also
focusedIndex
isRowEditing