Page 1 of 1

Re-Read Bindingsource's Data

Posted: Fri 06 Mar 2009 10:24
by Zero-G.
Hey

I don't know, what the problem in my program is. - I add some Data to the Bindingsource through code.
I don't see the changes on the screen, but when I SubmitChanges() and reopen the form again, everything is there.
So, is there a way to re-read the bindingsource DataSource?
Like: Datacontext.Refetch - or BindingSouce.Refetch...

THX

Posted: Fri 06 Mar 2009 14:26
by AndreyR
For refreshing your BindingSource you can use the code like the following:

Code: Select all

bindingSource1.CurrencyManager.Refresh();