Use of Odd and Even Styles
- Last UpdatedMar 30, 2022
- 2 minute read
Use of Odd and Even Styles describes how to create a report using odd and even styles. For more information on using styles in the Report Designer, refer to Styles Concepts.
-
Select the reportDetail band, and in the Property Grid, expand the Styles property.
Display the dropdown list for the Even Style property and click (New).

The controlStyle1 will be assigned to the Even Style property.
-
Expand the Even Style property and set, for example, the Background Color property to a colour as required.

-
Repeat the last two steps for the Odd Style property, i.e. create a new style and set its Background Color property to different colour.
-
Expand the Style Priority property and set Background Color to Yes.

-
If the report is previewed using the Preview tab at this stage, something like the following will be displayed:

As displayed, the created styles are applied to all the controls contained in the reportDetail band.
-
If a different style is required for one of the fields. Select the required field, and in the Property Grid, expand its Styles property and open the dropdown list for the Style property. Click (New).
Expand the Style property, and for the created controlStyle3, set the Background Color property to the required colour.

-
Make sure the Style Priority property for Background Color is set to Yes so that the style of this control has priority over the reportDetail band's styles. Switch to the Preview tab to view the result.
