SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.getCellIndex  method

매개변수 rowIndexcolumn으로 지정한 위치 값을 갖는 CellIndex 객체를 생성해서 리턴한다. 

rowIndex를 지정하지 않으면 0, column을 지정하지 않으면 첫번째 컬럼을 사용한다. 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
포커스셀