Conditionally Change a Control's Appearance
This document describes how to change a report control's appearance based on a specific condition.
Warning
Use the approach below if expression bindings are enabled in the Report Designer (the Designer provides the Expressions panel).
See Conditionally Change a Control's Appearance if expression bindings are not enabled in the Report Designer (the Designer does not provide the Expressions panel).
Switch to the Report Explorer panel, select the Styles node and click Add New Style to create a new visual style.
Click the created style and select Properties.
In the Properties panel, customize the created style's appearance settings.
Select another style and customize its appearance settings in the same way.
Switch to the Expressions panel, select a report element to which you wish to assign the created styles and click the ellipsis button for the control's Style Name property.
In the invoked Expression Editor, specify the required condition for switching between the created styles.
Switch to Print Preview to view the resulting report.