SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.onDataCellClicked  event

It will be fired when click the data cell with mouse. 

It will be fired when mouse down and up have been run in order in the same cell. It will not be fired if down and up have been run in different cells. If run mouse down in data cell, onDataCellClick event will be fired first. 

function onDataCellClicked (grid: GridBase, index: CellIndex);
Returns
Void
Parameters
grid - GridBase.
index - CellIndex.
Code -1
    grid.onDataCellClicked = function (grid, index) {
        if (index && index.dataColumn() && index.getDataIndex(grid) >= 0) {
            alert(ds.getValue(index.getDataIndex(grid), index.dataField()));
        }
    };
See Also
onDataCellDblClicked
onDataCellClick
onCurrentChanging
onCurrentChanged
Examples
Hello Grid
Focused Cell