By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,171 Members | 651 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,171 IT Pros & Developers. It's quick & easy.

C# - Updating a dataset in different forms.

P: 12
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
May 8 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.