SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setFocusedColumn  method

Change the location of focused cell by Column specified in parameter column

Only change the location of column rather than row of the existing Focused Cell. If want to change only the location of row rather than column, you can use setFocusedRow

Please refer to setFocusedIndex

function setFocusedColumn (column: GridColumn, focus: Boolean, select: Boolean): this;
Returns
this
Parameters
column - GridColumn. required.
focus - Boolean. Defaults to false.
select - Boolean. Defaults to true.
Code -1
    // Move to the first column.
    grid.setFocusedCol(grid.getFirstColumn());
See Also
focusedIndex
setFocusedRow
setFocusedIndex
setFocusedCell
GroupRow.collapsed
GridRow
CellIndex
Examples
Focused Cell