I want to display/edit a decimal value (from SQL2005). I have tried both UltraTextEditor and UltraNumericEditor, but neither seem quite right.
Firstly, UltraTextEditor:
When I use the UltraTextEditor, the decimal point does weird things. When the user hits it (the decimal point), it sends the curser to the start of box. So if the user attempts to input "1.3", it will end up as "31" (No decimal point, and the 3 is in the wrong position).
Secondly, UltraNumericEditor
Now the UltraNumericEditor seems to work a bit better - I am able to enter in the numbers I want to (and it accepts the decimal point). I have turned off the mask, but the decimal point that is always there remains. This means that if the user clicks on the control (UltraNumericEditor) which is currently null, they may click after the decimal point, and then enter in the number (a whole number, such as 25), but it gets entered after the decimal point (to end up as 0.25).
What am I doing wrong here? Why does it seem so damn hard to edit decimals with infragistics controls?
I am having the same problem. Any solution?
Thanks,
Doug
Yep.
When setting the databinding I need to set the DataSourceUpdateMode to OnValidation.
I set my databinding via code, so in the line of code that binds a control to the datasource, it now looks like this:
control.DataBindings.Add(propertyName, this.itemBindingSource, dataMember, true,System.Windows.Forms.DataSourceUpdateMode.OnValidation);
I still dont much likethe UltraNumericEditor (how the decimal point works in that), but at least the UltraTextEditor does what I want it to now.