SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getCellIndex  method

パラメーターrowIndexcolumnで指定した位置の値を持つCellIndex客体を生成してリターンする。 

rowIndexを指定しなければ0columnを指定しなければ最初のカラムを使う。 columnを文字列で指定すればその値を名にするカラム客体を探す。 

function getCellIndex (rowIndex: Integer|GridRow, column: GridColumn): CellIndex;
Returns
CellIndex
Parameters
rowIndex - Integer|GridRow.
column - GridColumn.
Code -1
    var index = grid.getCellIndex(2, grid.columnByField('order_id'));
    // または、カラム名で
    var index = grid.getCellIndex(2, 'colOrder');
    
    grid.setFocusedIndex(index);
See Also
focusedIndex
focusedRow
focusedColumn
setFocusedIndex
setFocusedRow
getFirstColumn
CellIndex
Examples
フォーカスセル