drallpradeep Posted May 13, 2009 Share Posted May 13, 2009 How to set the color of field value i.e.if diet = non-veg then value of Diet should be print in RED colorif diet = veg then value of Diet should be print in GREEN Colorif diet = veg/Egg then value of Diet should be print in BLUE colorvalue comes from database by query. Regards,Pradeep Link to comment Share on other sites More sharing options...
andfedotov Posted May 13, 2009 Share Posted May 13, 2009 here you are Link to comment Share on other sites More sharing options...
andfedotov Posted May 13, 2009 Share Posted May 13, 2009 <style name="style1" isDefault="false"> <conditionalStyle> <conditionExpression><![CDATA[new Boolean(1==0)]]></conditionExpression> <style isDefault="false" style="style1" forecolor="#FF0000"/> </conditionalStyle> <conditionalStyle> <conditionExpression><![CDATA[new Boolean(1==1)]]></conditionExpression> <style isDefault="false" style="style1" forecolor="#0000FF"/> </conditionalStyle> </style> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now