Hello I have form1
and form2
private void form1_Load(object sender, EventArgs e)
{
//codes to display db
}
then I use form2.ShowDialog();
to open the form because I dont want multiple windows
then in my form2 i have to delete something so the form1
must update the display.
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
//codes to delete
form2_Load(sender, e); //so the form2 will reload
}
First I have to open first form1
before I can open form2
. How can I update/refresh the form1
whilst still in form2?
EDIT:
The only thing I want to refresh in the form1
is the dataGridView