Using an event is one way to do this. The following is another object-oriented method.
Add a public update method to FormA.
public void RefreshDataGrid() {
Pass an instance of FormA to FormB when building FormB. You must create a FormB constructor to take an instance of FormA.
private FormA myFormA; public FormB(FormA formA) { myFormA = formA; }
Now you can call the FormA.ResfreshGrid () method from FormB.
myFormA.RefreshGrid();
source share