그리드 » Api

setcolumndepth

Description

그리드 특정 컬럼 깊이(depth 속성)를 지정하는 API이다.

Parameters

Parameters Type Description
nColumn short 컬럼 인덱스
nDepth short 지정할 깊이값
bRefresh BOOL [옵션] 그리드 리프레쉬 여부(기본값 true)

Return Value

Type Description
BOOL 정상 처리 여부

Remark

bRefresh 값이 false인 경우, 변경된 내용을 표시하기 위해서는 refreshcolumn 함수를 호출해야 한다.

만약 많은 수의 칼럼에 대해서 루핑 돌면서 호출하는 경우라면, 해당 파라미터를 false로 주고, 루핑처리 끝난 이후에 그리드 refreshcolumn 함수를 호출하는 것이 속도면에서 훨씬 빠릅니다.

Example

function btnsetcolWidth_on_mouseup() { var column_depth; // 1번째 컬럼 데이터부 depth 속성을 구하여 표시 column_depth = grd.getcolumndepth(1); factory.consoleprint("1 column depth = " + column_depth); if (column_depth == 0) { // 1번째 컬럼 데이터부 depth 속성을 변경 grd.setcolumndepth(1, column_depth + 1, false); // 그리드 refresh grd.refreshcolumn(); // 1번째 컬럼 데이터부 depth 속성을 구하여 표시 column_depth = grd.getcolumndepth(1); factory.consoleprint("1 column depth = " + column_depth); } }

See Also

getcolumndepth

Viewer Ver.

23.9.27.1

Update Date

20230927