SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setFocusedRow  method

매개변수 rowIndex에 지정한 행으로 포커스셀의 위치를 변경한다. 

rowIndexindex 객체일 수 있다. 기존 포커스셀의 컬럼 위치는 변경하지 않고 행 위치만 변경한다. rowIndex가 그리드행이고 그 조상 행이 닫혀진 상태인 경우, 먼저 그리드행이 표시되도록 한다. 

행 위치는 변경하지 않고 컬럼 위치만 변경하고 싶을 때는 setFocusedColumn을 이용한다. setFocusedIndex를 참조한다. 

function setFocusedRow (rowIndex: Integer|GridRow, focus: Boolean, select: Boolean): this;
Returns
this
Parameters
rowIndex - Integer|GridRow. required.
focus - Boolean. 기본값은 false.
select - Boolean. 기본값은 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
포커스셀