Show / Hide Table of Contents

Conditionally Change a Control's Appearance

This document describes how to change a report control's appearance based on a specific condition.

Note

Use this approach if expressions are enabled in the Report Designer (the Label's smart tag includes the Expression property).

See the Conditionally Change a Control's Appearance topic in the Shape Data (Data Bindings) section to learn about an alternative approach.

  1. Switch to the Report Explorer and right-click the Styles category to create a new visual style.

  2. Right-click the created style and select Edit Styles.

  3. In the invoked Styles Editor, customize the created style's appearance settings.

  4. Create another style by cloning the existing one.

  5. Customize the new style's appearance settings and close the editor.

  6. Back in the Report Explorer, select a report element to which you wish to assign the created styles.

  7. Open the Property Grid's Appearance tab, click the Style property's marker and select Style Expression in the context menu.

  8. In the invoked Expression Editor, specify the required condition for switching between the created styles.

Switch to Print Preview to view the resulting report.

  • Improve this Doc
Back to top Copyright © 1998-2020 Paragon9, LLC and Developer Express Inc. All rights reserved.