Support our 100% FREE Projects: Donate Now OR Sponsor Now


  

SSRS alternate row color

If you after SSRS Alternate Row Color then you are in the right place.

The easiest way to apply alternate row color using SSRS is to use the following Expression:

=IIF((RowNumber(nothing) MOD 2)=1,"Gainsboro","Transparent")

How to do that exactly? Please follow the instructions below:
1. Select Entire Row

SSRS Alternate Row Color - Select Row

2. Go to Properties, Find Background property and click on ‘Expression...’

SSRS Alternate Row Color - Apply Expression

3.In ‘Expression’ window type:

=IIF((RowNumber(nothing) MOD 2)=1,"Gainsboro","Transparent")

SSRS Alternate Row Color - Expression sample

Hope that helps!
Katie
Share: Share on FacebookShare on Google PlusTweet it
Comments Add Comment
Name: Rich
Comment:

Thanks for the approach. The formula provided generated a report, but the following warning was also generated for every other row:

[rsInvalidColor] The value of the BackgroundColor property for the text box ... is “Transparent”, which is not a valid BackgroundColor.

Changing the expression slightly provided the desired result without the warning messages:

=IIF((RowNumber(nothing) MOD 2)=1,"Gainsboro", Nothing)

Thanks again!


Date Posted: 05/12/2012 9:58:58 PM

Share your thoughts, questions and suggest improvements:
Add Comment

You found us! Below are 50 most popular searched keywords

created at TagCrowd.com

Disclaimer: While every caution has been taken to provide our readers with most accurate information and honest analysis, please use your discretion before taking any decisions based on the information in this blog. Author will not compensate you in any way whatsoever if you ever happen to suffer a loss/inconvenience/damage because of/while making use of information in this blog.