그리드 » Api

setcolumnexpaned

Description

그리드 특정 컬럼의 확장 상태를 지정하는 API이다.

Parameters

Parameters Type Description
nColumn short 컬럼 인덱스
bExpanded BOOL 확장 상태 여부
bRefresh BOOL [옵션] 그리드 리프레쉬 여부(기본값 true)

Return Value

Type Description
BOOL 정상 처리 여부

Remark

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

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

Example

function btnsetcolWidth_on_mouseup() { var is_expaned_column; // 0번재 컬럼 확장 상태를 구하여 표시 is_expaned_column = grd.isexpandedcolumn(0); factory.consoleprint("0 column expaned = " + is_expaned_column); // 확장 상태 토글 처리 if (is_expaned_column) { grd.setcolumnexpanded(0, false, true); } else { grd.setcolumnexpanded(0, true, true); } // 0번재 컬럼 확장 상태를 구하여 표시 is_expaned_column = grd.isexpandedcolumn(0); factory.consoleprint("0 column expaned = " + is_expaned_column); }

See Also

expandallcolumn

Viewer Ver.

23.9.27.1

Update Date

20230927