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

Parents
  • 33839
    posted

    Hi rohitarora,

    What version and build number are you running?  I know there was a bug fix around this a little while ago.  If you upgrade to the latest Service Release, it may be resolved.  You are correct that you'd need HtmlEncode false.  If it still doesn't work with the latest SR, let us know.

    regards,

    David Young

Reply Children
No Data