Table of Contents

Use Odd and Even Styles

This tutorial describes how to apply odd and even styles to report controls, e.g., to alternate the background color for each record.

To utilize odd and even styles, do the following.

  1. Create a table report.

  2. In the Properties Panel, click the ellipsis button for the report's Style Sheet property.

    EUD_WpfReportDesigner_OddEvenStyle_1

  3. In the invoked Styles Editor, click the plus button to add a new style. Then, adjust the required options, e.g., set the Background Color.

    EUD_WpfReportDesigner_OddEvenStyle_2

    Click OK to apply changes and quit the dialog.

  4. Select the detail table, and in the Properties Panel, expand its Styles option. Invoke the drop-down list for the Even Style property and select the created style.

    EUD_WpfReportDesigner_OddEvenStyle_3

If required, perform the same steps to create and assign an odd style.

Switch to the Print Preview tab and view the result.

EUD_WpfReportDersigner_TableReport_Result