Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
4.33/5 (2 votes)
I want to change background color of row of matrix based date condition i.e. every sunday row.
Actually every has a date, I found day of that date if it is sunday background color of row should be green.

My code is on matrixrow4
<pre lang="vb">
=Iif(WeekdayName(Weekday(FORMAT(Day(Fields!DATE.Value).ToString()+"/"+Month(Fields!DATE.Value).ToString()+"/"+Year(Fields!DATE.Value).ToString())))="Sunday", "#FFFF00","")

It is working for 04/08/2013 , 11/08/2013,01/09/2013 and 08/09/2013 in ranging 01/08/2013 to 10/09/2013
It is not changing complete row background color.
Posted
Updated 19-Feb-14 21:53pm
v3

1 solution

To fill color in entire row, I think you will have to fill each text box of that row.
In text box property, you will get fill color property where one can fill color based on the expression.
You will have to make expression according to your logic. The same you will have to apply for each text box of the row. Based on your expression, row color will be applied.
 
Share this answer
 
v2

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