Re-Read Bindingsource's Data

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Re-Read Bindingsource's Data

Post by Zero-G. » Fri 06 Mar 2009 10:24

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

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 06 Mar 2009 14:26

For refreshing your BindingSource you can use the code like the following:

Code: Select all

bindingSource1.CurrencyManager.Refresh();

Post Reply