Click here to Skip to main content
14,665,555 members
Rate this:
Please Sign up or sign in to vote.
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.
Updated 19-Feb-14 21:53pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100