Link to home
Start Free TrialLog in
Avatar of rp
rpFlag for Portugal

asked on

Refresh Datagridview from another form

Hi,

I have two forms. I call FORM2 from FORM1. When in FORM2 and apply some changes with button control i need refresh Datagridview in FORM1 before exit FORM2.


Call FORM2 from FORM1:

Dim f As New form2(myparameter)
f.ShowDialog()

Code for Button in FORM2:

 Dim f1 As New form1
 F1.ShowGridRecords()  ' Procedure to bind grid
 f1.MyDgView.Refresh()

But with this approach not work, can someone help.

best regards

Example in attached image
img6.png
ASKER CERTIFIED SOLUTION
Avatar of Dustin Saunders
Dustin Saunders
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial