boes Posted December 17, 2002 Posted December 17, 2002 Hey, I have the following problem : I have 2 forms. On form1 I have a datagrid that I fill using a dataset and datatable. When I make some changes on form2 the data in the grid on form1 should be updated as soon as I go back to form1. How can I do this? I already tried to refill my datagrid on form1 out of form2 with the same public function that I use to fill it in the first place (so when I start my application). Quote
wessamzeidan Posted March 11, 2004 Posted March 11, 2004 Hey, I have the following problem : I have 2 forms. On form1 I have a datagrid that I fill using a dataset and datatable. When I make some changes on form2 the data in the grid on form1 should be updated as soon as I go back to form1. How can I do this? I already tried to refill my datagrid on form1 out of form2 with the same public function that I use to fill it in the first place (so when I start my application). Pass a reference of the first form to the second and call its public function that you used to fill the datagrid... Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
Administrators PlausiblyDamp Posted March 11, 2004 Administrators Posted March 11, 2004 Pass a reference of the first form to the second and call its public function that you used to fill the datagrid... There is a tutorial in our 'Tutor's Corner' you may find helpful. Click here Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.