Conditionally Hide Bands
- Last UpdatedNov 18, 2025
- 3 minute read
Bands may be conditionally hidden. In this example the Group Header and Detail bands will be hidden if a grouping field meets a certain condition.
Note: No scripts are required to accomplish this task.
-
Create a new report.
-
Bind the report to a data source.
-
Add a Group Header band to the report.
-
Right-click anywhere on the report, and in the Context menu, point to Insert band and click GroupHeader.

-
Drag the field which will be used as a grouping criteria from the Field List onto the created GroupHeader1 band.

-
Click the Smart Tag of the GroupHeader1 band, and in the actions list, click the ellipsis in the Group Fields section.
The GroupField Collection Editor window is then displayed.

-
In this window, click Add to add a new grouping field, and set its Field Name property to the required field.
-
To apply the settings and close the window, click OK.
-
Drag the fields representing the general report's data onto the report's Detail band from the Field List.

-
Select the Group Header band's strip, and in the Property Grid, locate the Formatting Rules property, and click the ellipsis.
-
In the Formatting Rules Editor, click Edit Rule Sheet.

-
In the Formatting Rule Sheet Editor, click
, to create a new rule.
-
Then set its Visible property to No, and for the Condition property, click the ellipsis.

-
Construct the required boolean expression to be met (for example, [ShipCountry] == 'Argentina'), and click OK.

-
Click Close to close the Formatting Rule Sheet Editor.
-
In the Formatting Rules Editor, move the rule from the Available Rules list to the Applied Rules list (using the > button) to apply it to the band.
-
Repeat this step for the report's Detail band (for example, click its Formatting Rules property's ellipsis, and in the window, make the same rule apply to this band, as well). Otherwise, only the Group Header band will not be displayed when the rule's condition is met, while the detailed section of this group will still be visible.

-
Switch to the Preview tab to view the result.
In this example, the Argentina section has not been added to the report as a result of the conditional formatting.
