Question : SQL Reporting Server - Change the alternating row color of my table so that every other row is light gray

SQL Reporting Services.  Visual Stuidio 2005

How can I have alternating row colors for my table.  I want every other row to be a light gray color.
How do I do this to an existing table in my report?

Answer : SQL Reporting Server - Change the alternating row color of my table so that every other row is light gray

Select the whole detail row (select the table, then click the row selector on the left hand side).
In the properties set the "Background Color" property to the following expression;
  =IIf(RowNumber() Mod 2 = 0, "Gray", Nothing)

That's it!

Nothing in Colour properties should give you "(Transparent)", if that doesn't work try "White".

Cheers
Chris
Random Solutions  
 
programming4us programming4us