set_alternating_row_color
Apply alternating row colors to a tablix detail section using conditional BackgroundColor expressions, replacing any existing color settings.
Instructions
Zebra-stripe a tablix's detail row by writing BackgroundColor=IIf(RowNumber(Nothing) Mod 2, color_a, color_b) on every detail cell's Textbox. Walks the row hierarchy to find the Details leaf — works after add_row_group nests the structure deeper. Replaces any existing BackgroundColor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| color_a | Yes | Odd-row color, e.g. '#F2F2F2'. | |
| color_b | Yes | Even-row color, e.g. '#FFFFFF'. | |
| tablix_name | Yes |