ReportViewer Cell Formatting

Posted by firedrawndagger on Stack Overflow See other posts from Stack Overflow or by firedrawndagger
Published on 2010-06-01T20:59:24Z Indexed on 2010/06/01 21:03 UTC
Read the original article Hit count: 272

I need to change the color of a cell in ReportViewer based on its value.

1) I got the first part down - I'm comparing the difference between two numbers like so:

=IIf(Fields!variance.Value > 0)

2) Now how do I actually change the visual formatting of the cell?

A web standards way would be to add a class - since then you can format the class to whatever you like, e.g. changing borders, typography, bacgkround color etc. Since ReportViewer sucks and doesn't have that functionality what should I use instead? Any hacks I could use?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET