Ultra Numeric Editor sets the default value to 2 decimal places

How to use UltraNumericEditor.MaskInputup to 10 or more decimal places to enter input?

+4
source share
1 answer

The problem is that there are more decimal places, because the MaskInput property requires the exact number of decimal places you want to enter.

So, if you want to get a maximum of ten decimal places, you can write

numEditor.NumericType = NumericType.Decimal
numEditor.MaskInput = "{LOC}n.nnnnnnnnnn"

{LOC} .
,

numEditor.MaskInput = "{LOC}{double:1.10:c}"

, .

MaskInput - Infragistics.

MaskInput

+5

Source: https://habr.com/ru/post/1628305/


All Articles