Sunday, February 16, 2014

Make RDLC reports as alternate row color

Hi friends,
  Today I will let you know how to make the RDLC rows as alternate colors.
  Just select the row of the report in Design and press F4 , now you can see the properties.
  In the BackgroundColor , click on the Expression hyperlink and write the below expression :

 
=iif(RowNumber(
Nothing) mod 2, "LightBlue", "LightCyan")


Thats it.. you can change the color as you need. I have taken as LightBlue and LightCyan as an example.

Thanks,
Nitin Sharma