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
813
WebCurrencyEdit should show -$100 instead of ($100)
posted

Hi,

I have a webcurrency edit on my page which can have -ve values.

problem is WebCurrencyEdit converts -100 into ($100). is there any way it will show -$100 instead of ($100)?

Thanks.

Parents
  • 24497
    Verified Answer
    posted

    Hi Anand,

    Most aspects of format are defined by CultureInfo object. That includes negative patterns as well. Besides country, patterns can be different for different "types" of number: number/currency/percent. You may configure those properties globally for whole page using culture of CurrentThread, or you can do that separately for every editor. I think there is NumericFormat property, which can be set within Page.OnLoad or similar event. You may look at sample applications for WebDataInput related to custom-formats and dot-net docs for CultureFormatInfo.

Reply Children
No Data