API REFERENCE

getColumnGroup

Finds a current column group by ID. Returns null if absent.

What does this API do?

Finds a current column group by ID. Returns null if absent.

Exact input and result types

typescript
getColumnGroup(groupId: string): Promise<GridColumnGroupRef<GridData, unknown> | null>
ArgumentsRequiredType
groupIdRequiredstring

The return type is Promise<GridColumnGroupRef<GridData, unknown> | null>.

Usage flow

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

Read related types

Feature explanations and examples