SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.focusedIndex  property

目前具有输入焦点的数据单元格的位置。 

用户可以通过输入Tab键或方向键或点击鼠标而变更位置。 如果在单元格编辑中发生变更,就会进行编辑提交,并且在提交后,变更位置。 

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
聚焦单元格