SMART datagrid v.1 > Classes > GridBase
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
- It will not affect focusedIndex of grid if return by focusedIndex() or change the value of CellIndex object which has been used during setting. And, you should not keep and use the returned object in the range beyond the scope which has called this property. If you should use it after changing, you can clone() before using.
- See Also
- focusedColumn
- focusedRow
- focusedRowIndex
- onCurrentChanging
- onCurrentChanged
- onCurrentRowChanged
- CellIndex
- CellIndex.clone
- Examples
- Focused Cell