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
1510
display no decimals in UltraCurrencyEditor
posted

Hi there !

How can I display NO decimals in the UltraCurrencyEditor ?

I've tried like this:

 

e.Row.Cells[

"BaseAmount"].EditorComponent = ultraCurrencyEditor1;ultraCurrencyEditor1.FormatString = "N0"; //still displays 2 decimals
This works for a normal cell in the Grid, but apprantly not for the UltraCurrencyEditor?

I want amount to be displayed like this:
667.555 kr.  but it is like this now 667.555,00 kr. <-- I want to REMOVE the ,00 !?

Kind regards,
EE.

Parents
  • 69832
    Suggested Answer
    Offline posted

    Note that FormatString is only applied when the control does not have focus, or in the case where it is embedded within a cell, when the cell is not in edit mode. If you are aware of this, and the problem exixts when the cell is not in edit mode, my first suspicion would be that the column's Format property is set, whih would override the UltraNumericEditor's setting.

Reply Children