트리그리드 » Api

getparentrow

Description

트리그리드의 특정 Row의 부모 Row 인덱스를 리턴한다.

Parameters

Parameters Type Description
nRow long 행 인덱스 또는 -1

Return Value

Type Description
short 아이템의 부모아이템 행Index

Remark

부모행을 찾지 못한 경우 또는 오류 발생시 -1이 리턴된다.

Example

function btnParent_on_mouseup(objInst) { var nSelectRow = gg.getselectrow(); if(-1 < nSelectRow) { var nParentRow = gg.getparentrow(nSelectRow); if(-1 < nParentRow) { factory.consoleprint("parent item : " + gg.getitemtext(nParentRow, 0)); } } }

See Also

getnextsiblingrow

Viewer Ver.

9.1.1.1

Update Date

20210622