SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onShowEditor  event

在显示单元格编辑器之前,将会触发这个事件。
 如果在这个事件处理器中明确返回false,就不会显示编辑器。 

function onShowEditor (grid: GridBase, index: CellIndex);
Returns
Void
Parameters
grid - GridBase.
index - CellIndex.
Code -1
    grid.onShowEditor = function (grid, index) {
        if (index.column.name() == 'colSalary') {
            return false;
        }
    };
See Also
onUpdateStarted
onInsertStarted
onEditChanged
Examples
单元格编辑