SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setFocusedCell  method

Change the location of focused cell by the data cell specified by parameter rowIndex and column

rowIndex can be index or Row object. Please refer to setFocusedIndex

function setFocusedCell (rowIndex: Integer|GridRow, column: GridColumn, focus: Boolean, select: Boolean): this;
Returns
this
Parameters
rowIndex - Integer|GridRow. required.
column - GridColumn. required.
focus - Boolean. Defaults to false.
select - Boolean. Defaults to true.
Code -1
    var col = grid.getFirstColumn();
    grid.setFocusedRow(10, col);
    var row = grid.getRow(11);
    grid.setFocusedRow(row, col);
See Also
focusedIndex
setFocusedIndex
setFocusedRow
GroupRow.collapsed
GridRow
CellIndex
Examples
Focused Cell