binding refresh problem

Posted by: direzionetecnica on 3 August 2017, 3:39 am EST

  • Posted 3 August 2017, 3:39 am EST

    I'm not sure if my previous post was arrived in the forum, so i repeat the question.
    if i programmatically call:
    this.c1DataSource1.ViewSources[0].DataView.MoveCurrentToNext()
    my expected behavior is that the data binded controls in form (like for example c1textbox etc..)
    change accordly with the new object.
    But nothing happens
    What i'm doing wrong ?
  • Replied 3 August 2017, 3:39 am EST

    Hi,

    This is the expected behaviour of not just C1DataSource but any DataSource on Winforms. You are moving the underlying DataSource pointer but not the CurrencyManager. In order to move a through the record as if the user was moving it, attach your C1DataSource to a BindingSource and use it instead. The bindingsSource is a superclass of the CurrencyManager which is responsible for syncing what the user sees and the underlying dataSource....

    Hope this helps....
  • Marked as Answer

    Replied 3 August 2017, 3:39 am EST

    thank you for the quick response
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels