I\'ve a dgv on my main form, there is a button that opens up another form to insert some data into the datasource bounded to the dgv. I want when child form closes the dgv a
Great answer there! The other method would have been:
Call the method to refresh your gridVieW.
**inside your refreshMethod()
in form1
make sure you set the datasource
to null
**
if (System.Windows.Forms.Application.OpenForms["Form1"]!=null)
{
(System.Windows.Forms.Application.OpenForms["Form1"] as Form1).refreshGridView("");
}