Hello; i am having some problems trying to get a form that has a
datagridview to refresh after a new record is created.
I have a MDI container and menu form and add new record form; the menu
form display the data using a data grid view and the add record form
creates an object and passes that data to a class method which creates
the record using sqlcommand.
The add new record form is loaded after the user clicks on the add
button on the menu form, from there the user enters all the data
required, but once the user is done and clicks on Ok, the new record
is created, but the datagrid has to be refreshed and thats where i am
having problems.
I would think that the refresh() method would be called right after
the connection close() method or before, but since the datagrid is
located on a different form, the add record form cant see the
datagridview in order to call the refresh() method...
Any thoughts on how to refresh a datagridview located on form1 from a
different form...?
thanks..?