Articles in this section
Category / Section

How to restrict decimal values in CurrencyTextBox?

1 min read

In CurrencyTextBox, you can restrict the number of decimal places by using the CurrencyDecimalDigits property.

XAML

<syncfusion:CurrencyTextBox Name="currencybox"  CurrencyDecimalDigits="0"  />

C#

 currencybox.CurrencyDecimalDigits = 0;

The following screenshot displays the output of the above code example.

Figure 1: Decimal places restricted in CurrencyTextBox

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied