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
1285
Cell being formatted as currency.
posted

I have a cell which the underling property is of type decimal.  It is being display as a currency.  Is there a way to get rid of dollar sign as this property is not a currency number?

 

Thanks

Parents
No Data
Reply
  • 280
    posted

    Although this has already been verified, here's an additional line that I found through trial-and-error:
              field.Settings.EditAsType = typeof(Double);

    By default, if a field is of type Decimal then you see $_____.__ when in edit mode even after setting the EditorType to a XamNumericEditor. Using the above line removes the dollar sign.

Children
No Data