hi,
I am working in Windows Application using C#.
In my application when I close the child window then the DataGridView in the parent window need to be automatically refreshed, and display updated values
help me please
thanks
Refresh DataGridView in parent window
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Ryan AlfordRank #1,411 · 1.2K reputationPosted Aug 12, 2008, 5:24 AM EDT
Satish KathiRank #8,369 · 223 reputationPosted Aug 12, 2008, 11:30 AM EDT
If you are constrained not to use ShowDialog() handle the Closed event of the child form
Form2 childForm = new Form2();
childForm.FormClosed += new FormClosedEventHandler(childForm_FormClosed);
childForm.Show();
void childForm_FormClosed(object sender, FormClosedEventArgs e)
{
//Your logic to refresh the DataGridView goes here
}
Sen14 reputationPosted Aug 13, 2008, 7:43 PM EDT