SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.focusedIndex  property

The Location of data cell which currently has input focus. 

The user can type Tab or arrow key or click the mouse to change the location. If the cell is changed during editing, edit committing will be proceeded, and the location will be changed after committing. 

Getter
function focusedIndex(): CellIndex
Code -1
    var idx = grid.focusedIndex().clone();
    idx.rowIndex = idx.rowIndex + 1;
    grid.setFocusedIndex(idx);
Note
See Also
focusedColumn
focusedRow
focusedRowIndex
onCurrentChanging
onCurrentChanged
onCurrentRowChanged
CellIndex
CellIndex.clone
Examples
Focused Cell