We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to customize Decimal separator, Digit, Group separator and Group size in DoubleTextBox?

In DoubleTextBox, Decimal separator, Decimal Digits, Group separator and Group size can be customized by following below steps.

 

Decimal separator:

The decimal separator value can be specified by using the property named “NumberDecimalSeparator.

 

Decimal Digits:

The decimal digit value can be specified by using the property named “NumberDecimalDigits.

 

GroupSeparator:

The group separator can be specified by using the property named “NumberGroupSeparator.

GroupSize:

The group size can be specified by using the property named “NumberGroupSizes.

 

The following code example demonstrates the same.

C#

 

VB

 

Note:

  • The default value of the NumberDecimalDigits is 2.
  • The default value of the NumberDecimalSepartor is “.”.
  • The default value of the NumberGroupSeparator is “,”.
  • The default value of the NumberGroupSizes is 3.

 

 

Figure 1. Decimal separator is specified as “@”.

Figure 2. Decimal digits is specified as “5”.

Figure 3. Group separator is specified as “@”.

Figure 4. Group sizes is specified as “1”.

Sample Links:

 

C#: DoubleTextBox_DecimalValue_C#

VB: DoubleTextBox_DecimalValue_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
6345 02/19/2016 02/19/2016 WinForms DoubleTextBox
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon