트리그리드 » Api
copytreerow
Description
트리그리드의 특정 로우를 이동하는 API이다.
Parameters
Parameters |
Type |
Description |
nSrcRow |
long |
이동 대상 행 인덱스 |
nDstRow |
long |
이동할 위치 행 인덱스 |
nTargetType |
short |
이동할 위치 유형 |
bIncChild |
BOOL |
[옵션] 자식행 이동 포함 여부 (기본값: true) |
instSrcGrid |
INSTANCE |
[옵션] 소스 그리드 인스턴스 (기본값: null) |
Return Value
Type |
Description |
BOOL |
성공 여부(true, false) |
Remark
nTargetType 파라미터
0: nDstRow행 아래에 nDstRow와 같은 Depth로 이동
1: nDstRow행 위에 nDstRow와 같은 Depth로 이동
2: nDstRow행 하위 맨 위에 nDstRow보다 +1 Depth로 이동
3: nDstRow행 하위 맨 아래에 nDstRow보다 +1 Depth로 이동
Example
function btnTest_on_mouseup()
{
// 1번째 행을 0번재 행으로 이동
grdTree.copytreerow(0, 10, 0, true);
}
See Also
movetreerow
Viewer Ver.
9.1.1.1
Update Date
20210525