Articles in this section
Category / Section

How to restrict the decimal values in NumericUpDown ?

1 min read

In NumericUpDown, you can restrict the decimal values by using DecimalPlaces property.

XAML

<syncfusion:NumericUpDown x:Name="numericupdown" DecimalPlaces="0"  HorizontalAlignment="Center" VerticalAlignment="Center" Height="30" Width="100">
</syncfusion:NumericUpDown>

 

C#

numericupdown.DecimalPlaces = 0;

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