Skip to main content
1

Define a Column Group

Add a columnGroups section to your sheet configuration YAML. Each group has a unique ID and configuration properties:
2

Understand Group Properties

3

Assign Columns to the Group

Add a columnGroup property to each column that should belong to the group:
All three columns will appear under a shared “Requirements” group header in the sheet.
diagram
4

Configure Multiple Groups

Define multiple groups with different color schemes to visually separate entity domains:
5

Enable Collapse Behavior

When collapseTo is set, a collapse toggle button appears in the group header. Clicking it hides all columns in the group except the specified one:
When collapsed, only the hazard column is visible. Click the toggle again to expand all columns back.
The collapseTo value is specified by column binding path. If the target column is hidden (visible: false), the last visible column in the group is used instead.
Apply semantic colors: red/darkorange for risks, blue/lightblue for requirements, green/lightgreen for controls, purple/lightpurple for references. This helps users quickly identify column context in wide sheets.

Predefined Style Names

You can use any of these built-in style names for groupStyle and headerStyle: none, grey, darkgrey, red, darkred, orange, darkorange, green, darkgreen, lightgreen, blue, darkblue, lightblue, teal, darkteal, purple, darkpurple, lightpurple For custom colors, define styles in the styles section and reference them by name. See Apply Column Styles.

Verify

After saving the sheet configuration, reload the powersheet document. You should now see:
  • A group header row appears above the column headers
  • Columns assigned to the same group share a merged group header cell
  • Columns without a columnGroup show a blank group header
  • Groups with collapseTo display a collapse toggle button

See Also

Last modified on July 10, 2026