I am sure I'm doing something wrong but I don't know what....
I have an entity with several properties and all of them are in binding to a control on a form.
The UltraTextEditor controls work correctly, and when I change the value on the textbox, the bound data are changed according
The UltraNumericEditor control (bound to an integer field) when I press the Tab after modifying the value reverts back to the original object value...
I've Tried to bind both the Text and the Value property but the result is the same.
The only other thing I can add is that the object is one element in a collection and the collection is bound to a datagrid that is used to synchronize the values of the single object bound to the controls.
If I change the value of the property on the grid the UltraNumericEditor synchronizes accordingly, but not the reverse, while instead all Textbox controls behave correctly.
Is there something that have to be set on the UltraNumericEditor ???
Is there something that have to be set on the datagrid to inform it of the bi-directional data modification?
why the UltraTextEditors work correctly instead???
I am very confused
One difference between the two controls is that the UltraTextEditor deals with strings and the UltraNumericEditor needs a number. Make sure the NumericType property on the UltraNumericEditor is set to the appropriate type.
You would typically bind the Value property, not Text, since your data source field is presumably numeric and not a string.
What is the Type of the field you are binding to your UltraNumericEditor? If the text in the control can't be converted to that type, the data source might reject it and you would get the behavior you are describing.
If that doesn't help, try turning on all run-time exception in Visual Studio and then run your project and change the value of the UltraNumericEditor and then tab out. There might be an exception that is getting raised and caught so you simply aren't seeing it. If so, the exception message might tell us why the update failed.
If none of that helps, can you post a small sample project demonstrating the behavior you are getting? Then we could take a look and tell you exactly what's wrong.