트리그리드 » Api

ischildrow

Description

파라미터 nChildRow가 파라미터 nParentRow의 자식행인지 체크하는 API이다.

Parameters

Parameters Type Description
nParentRow long 부모행 인덱스
nChildRow long 자식행 인덱스
nCheckDepthCount short [옵션] 부모 검사 Depth 갯수 (기본값: 1)

Return Value

Type Description
BOOL 파라미터 nChildRow가 파라미터 nParentRow의 자식행인지 여부

Remark

nCheckDepthCount 파라미터 값이 0인 경우, 루트 Depth까지 비교한다. 만약 1을 지정한 경우, 바로 상위의 부모행인지만을 검사한다.

Example

function treeGrid_on_enddrag(objInst, nDragRow, nDropRow, nDragColumn, nDropColumn) { if(nDragRow == nDropRow) { return; } // nDropRow가 nDragRow의 자식행인가? if(treeGrid.ischildrow(nDragRow, nDropRow) == true) { screen.alert("부모행이 자식행으로 이동 할 수 없습니다."); return; } treeGrid.rowmove(nDragRow, nDropRow); }

See Also

getparentrow

Viewer Ver.

9.1.1.1

Update Date

20210622