4
Reply

click on one form updates datagridview on other form

Rhishikesh Savadikar

Rhishikesh Savadikar

May 10 2010 6:14 AM
7.5k

I am using C# Windows For Application in .Net 2.0 and Visual Studio 2005. I have 2 forms.
1. MDI form which has the datagridview.
2. Windows form used for entering the values.
There are 2 buttons on windows data entry form Their functionalities:
1. 'Enter' button: when clicked the data should be saved in the database. the data entry form should disappear. the datagridview on MDI form must be updated with the new entry.
2. 'Enter Another' button: when clicked the data should be saved in the database. the datagridview on MDI form must be updated with the new entry. the data entry form should be ready for another entry.
When i clicked on 'Enter Another' button, the datagridview on MDI form does not show updated data row unless I manually restart the form.
Another thing is that the implementation logic is clear to me but I am unable to convert it into C# code.
What could be solution?
Thanks in advance....

Answers (4)