Version

Setting minimum number of decimal places for WebNumericEditor

WebNumericEditor™ allows you to set the number of decimal places you want to display to your end-user by simply setting the control’s MinDecimalPlaces property. If an end-user types a number with more or less decimal numbers than the number of decimal places set on the editor, then the editor rounds to the number of decimal places set on the editor.

You can set the MinDecimalPlaces property either by using the Microsoft® Visual Studio® Property Window or by using the following code:

In Visual Basic:

WebNumericEditor1.MinDecimalPlaces = 4

In C#:

WebNumericEditor1.MinDecimalPlaces = 4;