Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
159
htmlencode not working?
posted

Hi,

I have a numeric bound column where I want to show data in red if it's negative.

 

boundcolumn.HtmlEncode =

false;

boundcolumn.DataFormatString =

"{0:#,###.00;<font color=red>(#,###.00)</font>;-}";

and the output that I am getting in the column is

<font color=red>(2,621,591.96)</font>

Any clues how I can get it right?

Regards