그리드 » Api
setvisibletoprow
Description
그리드상에 첫번째로 보여지게 할 로우 인덱스를 설정할 수 있는 API이다.
Parameters
Parameters |
Type |
Description |
nTopRow |
long |
그리드상에 첫번째로 보여지게 할 로우 인덱스 |
Return Value
Remark
* 그리드의 로우 개수가 한번에 모두 보여지지 않는 개수일 경우에 동작한다.
Example
function btn_on_mouseup()
{
grid1.setvisibletoprow(5);
}
function grid1_on_vscroll(objInst, nScrollPos, nPrevScrollPos, nSBCode, bSBMax)
{
// grid1이 상하 스크롤될때 grid2의 스크롤도 같이 이동시켜주는 예.
var nVisibleTopRow = grid1.getnonfixedtoprow();
grid2.setvisibletoprow(nVisibleTopRow);
}
See Also
getnonfixedtoprow
Viewer Ver.
9.1.1.1
Update Date
20061128