I have table like fields are Product_name and Quantity
Now I represent all product_name in table view. I want that the foreground color of every product_name will be red if Quantity is 0,
otherwise blue.
You can find numerous answers to this question on the forum.
You need to use html for that.
You can’t do that directly, in table view the change in fgcolor would apply to the whole column.
You have two options:
- Create a calculation field which return your value in html with the right color and display that field as html area instead of the original field;
- Create a calculation and use that to change the background color of the row using the rowBackgroundCalc property;
Thanks Nicola,
I made it through calculation for foreground and it works nicely.