SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.setFocusedCell method
フォーカスセルの位置をパラメーターrowIndexとcolumnで指定したデータセルに変更する。
rowIndexはindexや行客体であり得る。 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. デフォルト値はfalse.
- select - Boolean. デフォルト値は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
- フォーカスセル