hi guys..i am here with a new problem
i have two forms...in the first form(form1) i have a datagridview and when i want to insert some datas in it about customers i open second form(form2)...and when i finish adding i close form2...there is no problem till here...and when i close form2 i want to see new row added to datagridview that i have in form1..but to see new row i have to close the form1 as well and when i open it again i see it there...i wrote that codes into the Form2's closing event to see the new row in the datagridview but still i dont have the result i wish
Form1 frm1=new Form1();
frm1.Refresh();
so what else i can do to see that row ??
Loading

Kirtan PatelRank #292 · 8.6K reputationPosted Jan 4, 2010, 10:12 AM EST
Hiren SoniRank #694 · 3.5K reputationPosted Jan 2, 2010, 5:14 AM EST
Erdinc Kolukisa109 reputationPosted Jan 3, 2010, 10:54 PM EST
thanks for the reply
i tried your codes but it doesnt work and it doesnt give error as well :(
so what else i can do ??
Erdinc Kolukisa109 reputationPosted Jan 3, 2010, 11:00 PM EST
thanks for the reply
i tried your codes with the timer one but i cant find any method like GetAccountDetails()..
is it a method that u created or it is a method of Timer control ??
Hiren SoniRank #694 · 3.5K reputationPosted Jan 4, 2010, 12:26 AM EST
Kirtan PatelRank #292 · 8.6K reputationPosted Jan 4, 2010, 1:01 AM EST
i can make like when you insert new record in form 2 form1 will update automatically .
Nilanka DharmadasaRank #1,875 · 794 reputationPosted Jan 4, 2010, 1:47 AM EST
I wrote a simple example for you. It does exactly what you want. Check it.
If you find it useful, please do not forget to tick 'Do you like this answer' check box.