BestMark Posted March 18, 2009 Report Share Posted March 18, 2009 Is there a way to conditionally format the background color and/or font color in a cell? For example.... - when the cell value is negative, the cell background color is red (white font color) - when the cell value is positive, the cell background color is green (white font color) - when the value is 0, the cell background color is white, (black font color). Quote Link to comment Share on other sites More sharing options...
labrashjw Posted January 15, 2010 Report Share Posted January 15, 2010 Look under FormattingDataValue then look at e.field.datapath and e.datavalue the you can use String .Format("<span style=""color:red"">{0}</span>", e.FormattedValue) Hope that helps Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.