C# - Updating a dataset in different forms.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • twigboy
    New Member
    • Mar 2007
    • 12

    C# - Updating a dataset in different forms.

    Hi everyone,

    I have a strongly typed dataset, with my main form having a datagridview that is binded to an access database. The main form has three buttons one to create a new entry in the database one to edit an entry in the database and one to close an entry in the database. All three buttons work in the similar way, such that the entry you select in the datagridview is the entry you want to close or edit. When I click on the open or edit button it opens another form to create a new entry or edit the selected one. When I close and entry I do this from the main form and the datagridview updates automatically. But when I finish the open or edit calls it doesnt update automatically or right away. In both open and edit forms I run update to send the changes to the database then I call fill to refill the dataset. The only time it updates the datagridview is if I hit the open or edit button again, say to open a new entry, then the last entry I opened is updated in the datagridview.

    Is there a way to update and fill the dataset after I close the open or edit forms?

    Thanks
Working...