Question : Matrix Background Color

Common Question But i can not understand what is going on!!
in My Matrix The Value TextBox is a date Field=FORMAT(MAX(Fields!Expr1.Value),"dd-MM-yyyy")
What i want to do is
1.when the value ="" then Color White
2.When Value Less than today Color Red
3.10 Days Before today Yellow..
Finnaly When Value>=Today Color Green
SO far ..
The Result Of my code is that there are no Greens Even if i have Values >today and i have yellows without any Values in Range
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
=IIF(FORMAT(MAX(Fields!Expr1.Value),"dd-MM-yyyy") = "","White",
     IIF(
         FORMAT(MAX(Fields!Expr1.Value),"dd-MM-yyyy")<Format(Today,"dd-MM-yyyy"),"Red",
                IIF(
                   FORMAT(MAX(Fields!Expr1.Value),"dd-MM-yyyy")<Format(DateAdd("d",-10,today),"dd-MM-yyyy"),"Yellow",
                    "Green"
       
        )            
      ) 
   )

Answer : Matrix Background Color

If you don;t have sorting enabled there won't be a link button....
You can get header text like:

string header = GridView1.Columns[i].HeaderText; //  i is the 0-based index for the column

Or you can also get it like:

string header = GridView1.HeaderRow.Cells[i].Text;
Random Solutions  
 
programming4us programming4us