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
235
NumericEditor, CurrentCulture and NumberGroupSeperator
posted

In an application I'm developing, I've got multiple numericeditors which are set to display double values. When I type in a large number like 10245, the editor places a dot in between every three numbers. That's fine, but I don't want to dot there.

I've read things about NumberGroupSeperator but that seems to apply to the webnumericeditor control. How can I set the numberformat for the ultranumericeditor to not display any character between three digits? And even better: is it possible to alter the NumberFormat object of the Thread.CurrentThread object so none of the numericcontrols display this character?

Parents
  • 37774
    posted

    You should be able to get rid of the numeric separator without delving into the various regional/cultural settings, assuming that you always want this behavior to occurs.  To do this, use the MaskInput property of the editor; a sample mask would be "nnnnnnn.nn", which would allow two decimal places and a maximum value of 9999999.99.  You can add commas to the mask to show the numeric separator if you want at certain places.

    -Matt 

Reply Children