# setColumnGroupOpened

Expands or collapses the specified column group header.

Canonical: https://grid.syidax.com/docs/methods/setColumnGroupOpened/

<a id="meaning"></a>

## What does this API do?

Expands or collapses the specified column group header.

<a id="contract"></a>

## Exact input and result types

```typescript
setColumnGroupOpened(groupId: string, open: boolean): Promise<void>
```

| Arguments | Required | Type |
| --- | --- | --- |
| groupId | Required | string |
| open | Required | boolean |

The return type is `Promise<void>`.

<a id="usage"></a>

## Usage flow

After registering and initializing the Grid element, call grid.setColumnGroupOpened(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

<a id="recipes"></a>

## Feature explanations and examples

- [Multi-level headers](https://grid.syidax.com/docs/features/column-groups.md) — Multi-level headers place related columns under a shared heading. Unlike row grouping, they do not change data counts or aggregate values.
