# getMergedColumnInfos 메서드

#### 메서드 <a href="#getmergedcolumninfos-fang-fa-fang-fa" id="getmergedcolumninfos-fang-fa-fang-fa"></a>

&#x20;  ListView\.getMergedColumnInfos()

#### 설명 <a href="#getmergedcolumninfos-fang-fa-miao-shu" id="getmergedcolumninfos-fang-fa-miao-shu"></a>

리스트뷰의 모든 열에 대한 정보를 가져옵니다. 행 헤더 열, 선택 열, 숨겨진 열 등을 포함합니다.

#### **매개 변수** <a href="#getmergedcolumninfos-fang-fa-can-shu-shuo-ming" id="getmergedcolumninfos-fang-fa-can-shu-shuo-ming"></a>

없음&#x20;

#### **반환값**  <a href="#getmergedcolumninfos-fang-fa-fan-hui-zhi" id="getmergedcolumninfos-fang-fa-fan-hui-zhi"></a>

&#x20;  IMergedColumnInfo\[]

#### 예제 <a href="#getmergedcolumninfos-fang-fa-shi-li" id="getmergedcolumninfos-fang-fa-shi-li"></a>

다음 예제 코드에서는 getMergedColumnInfos 메서드를 사용하여 리스트의 모든 열에 대한 정보를 가져옵니다. 행 헤더 열, 선택 열, 숨겨진 열 등을 포함합니다.

```
// 현재 페이지 가져오기
var page = Forguncy.Page;
// 페이지에서 리스트 가져오기
var listview = page.getListViews()[0];
//리스트의 모든 컬럼 정보를 얻는다.
var infos=listview.getMergedColumnInfos();
//리스트의 모든 컬럼 정보를 표시하는 경고창 팝업
alert(JSON.stringify(infos, null, " "));
```

#### 사용 예제 <a href="#getmergedcolumninfos-fang-fa-shi-li" id="getmergedcolumninfos-fang-fa-shi-li"></a>

1. 페이지에서 범위를 선택하고 데이터 테이블을 셀 범위로 드래그하여 데이터 테이블의 필드를 바인딩합니다.
2. 셀 범위를 선택하고 셀 유형을 버튼 설정하고 명령을 \[자바스크립트로 직접 프로그래밍하기]으로 편집하고 JavaScript 코드를 입력합니다.

<figure><img src="/files/wf2GNaEwGvhIu0tLidtP" alt=""><figcaption></figcaption></figure>

3. 편집이 완료되면 \[확인]을 클릭하여 대화 상자를 닫습니다.\
   페이지를 실행하고 페이지에서 테이블 열 정보 버튼을 클릭하면 행 헤더 열, 열 선택, 열 숨기기 등을 비롯한 테이블의 모든 열에 대한 정보가 포함된 경고 상자가 나타납니다.

<figure><img src="/files/GaiVFo9s6G4MMLUyaZYs" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.forguncy.co.kr/forguncy-v9/command/javascriptprogramming/javascript-api/class/listview/getmergedcolumninfos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
