Formatting Column Groups
Summary
- Columns in Column Groups can be formatted depending on whether the Group is Expanded or Collapsed
By default all Columns placed inside Column Groups will be styled and formatted normally, and irrespective of whether the Column Group is expanded or collapsed.
However it is possible to stipulate that a Column is only formatted if the Column Group in which it is situated is expanded (or collapsed).
Hint
This is particularly useful when using Pivot Column Groups and Pivot Total Columns
This is done using the ColumnGroupScope property in the Format Column object which can take 3 values:
Both(the default)ExpandedCollapsed
Caution
Both will not be applied to top-level columns which don't have a parent group
Column Groups: Expanded and Collapsed
- In this example we have created Format Column Styles on 3 Columns inside Column Groups - each with a different behaviour (set via the
ColumnGroupScopeproperty):- The
Issue Changecolumn is set toBoth- which is why the Style is visible when theIssues & PRsColumn Group is both expanded and collapsed - The
Github Starscolumn is set toCollapsed- which is why the Style is visible when theDetailsColumn Group is collapsed (but not expanded) - The
Github Watcherscolumn is set toExpanded- which is why the Style is visible when theDetailsColumn Group is expanded (but not collapses)
- The