Re-Read Bindingsource's Data

Re-Read Bindingsource's Data

Postby 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
Zero-G.
 
Posts: 390
Joined: Sat 09 Dec 2006 12:20

Postby 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();
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to LinqConnect (LINQ to SQL support)