Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
How to use XamNumericEditor when binding to a decimal value
posted

Hi,

I am new to the Infragistics controls and I am attempting to use XamNumericEditor to edit a numeric input field.  The default value for this field comes from a database value which is a decimal. My xaml code is below.

<ig:XamNumericEditor Grid.Row="2" Grid.Column="1"   Value="{Binding OrderQuantity, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, UpdateSourceTrigger=Explicit}"
Width="100" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="4,0,0,0"
Mask="{}{double:10.3}" ValidationMode="Always" />

My problem is that I am getting the following error message when I run the application:  System.ArgumentException: The new assigned value: 0 is not of specified type: Double.  Is there another editor I should be using if I can't bind to a decimal value when using XamNumericEditor?

Thank you.

Parents Reply Children