Click here to Skip to main content
15,891,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How do i change the cell background color based on result in SSRS?
But, i didnt get the background color ,i got the color code in that cell as a text.

What I have tried:

The belo expression I have used,but didnt get the expected result.
C#
=IIF(Fields!RESULT.Value = "NOT_FEED", "Red", "#003366")
Posted
Updated 17-Feb-16 19:11pm

These are the steps:

1-Right Click on Textbox and then click Properties
2-Select Fill Tab.
3-Click on Backgound color Expression
4-then write express



=IIF(Fields!RESULT.Value = "NOT_FEED",ColorForTrue, ColorForFalse)
 
Share this answer
 
Go to properties of cell and choose background color. Then go for expression and use code:
VB
=IIF(Fields!RESULT.Value = "NOT_FEED", "Red", "Green")

Below link may help you:

Data Driven Colored Text for Reporting Services Reports[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900