SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setFocusedRow  method

Change the location of focused cell with the row specified in parameter rowIndex

rowIndex can be index or Row object. It only changes the location of row rather than column of existing Focused Cell. If rowIndex is grid row and its ancestor row is Collapsed state, it will display grid row first. 

If want to change only the location of column rather than row, you can use setFocusedColumn. Please refer to setFocusedIndex

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