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