Articles in this section

How to Apply Alternating Row Colors in a Tablix in Bold Reports

Published:
Updated:

Alternating row colors, also known as zebra striping, improve the readability and appearance of tablix reports in Bold Reports. By displaying consecutive rows with different background colors, users can quickly track and analyze data across the report. Follow the steps below to apply alternating row colors to a tablix.

Steps

  1. Open your RDL report in the Report Designer and select the tablix.

    Tablix.png

  2. Click the row handle on the left of the detail row to select the entire row group, not a single cell. Applying the expression to the whole row keeps every column in that row the same color.

    RowGroup.png

  3. In the PROPERTIES pane, expand the Appearance category and find the Background Color property.

  4. Click the square icon at the right of Background Color, then choose Expression to open the expression builder.

    Expression.png

  5. Enter the following expression and click OK:

    =IIF(RowNumber(Nothing) MOD 2 = 1, "#F2F2F2", "#FFFFFF")
    

    BackgroundColor.png

Note: RowNumber(Nothing) returns a running count of rows across the whole dataset. MOD 2 tests whether that count is odd or even, so odd rows get #F2F2F2 (light grey) and even rows get #FFFFFF (white). Swap the two color values to flip which rows are shaded.

  1. Click Preview at the top-right to render the report.
    Output.png

Related articles

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied