Re: How to "refresh" a Datagridview?
Be sure you really modify the db and not only a local in memory representation of it in form2.
Then, you first, you should make form 2 inform form 1 it is time to reload (requery) data.
To refresh data in form 1 use
Code:
BindingSource1.ResetBindings(false)
On how to inform form1 from form2 it is time to refresh, have a look at delegates and callbacks. But take this advice: look also at async operations...
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.