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
55
UltraCurrencyEditor Value not updating
posted

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;

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children
No Data