I'm using the ultracurrencyeditor to manage my model. It loads data correctly. But its not storing updates correctly. While debbuging I can see that the value is automatically getting set to 0.
clientYTD.DataBindings.Clear();clientYTD.DataBindings.Add(new Binding("Text", _Binder, "clientYTD", true, DataSourceUpdateMode.OnPropertyChanged));
I even try fetching values manually before saving
private void saveChanges()
{
_model.clientYTD = clientYTD.Value;
...
}
when it gets here the value is 0;
Hi,
Is the clientYTD field a string? If so, why use an UltraCurrencyEditor? If not, why you are binding the Text property?
My guess is that your clientYTD is numeric and binding to the Text property is converting it to a string which is causing problems. You should bind to the Value property, instead.
If that does not help, then see if you can duplicate the problem in a small sample project and post it here and we will be happy to take a look.