Use Odd and Even Styles

<< Click to Display Table of Contents >>

Navigation:  User Interface Reference > Report Designer > Report Designer for WinForms > Create Reports > Styles and Conditional Formatting >

Use Odd and Even Styles

Interface Elements for Desktop > Report Designer > Report Designer for WinForms > Create Reports > Styles and Conditional Formatting in Reports > 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.Select the detail table, and in the Property Grid, expand its Styles.

Invoke the drop-down list for the Even Style, and click (New).

img8475

This will create a style and assign it to the control's Even Style.

3.Now, expand the Even Style property, and adjust the required options, e.g. set the Background Color to ControlLight.

img8476

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

Switch to the Preview Tab, and view the result.

img8346

ExpandedCollapsed See Also

Understanding Style Concepts

Store and Restore Style Sheets

Conditionally Change a Control's Appearance

Copyright (c) 1998-2016 Developer Express Inc. All rights reserved.

Send Feedback on this topic to DevExpress.