471,571 Members | 1,104 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,571 software developers and data experts.

C# - Updating a dataset in different forms.

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
0 1048

Post your reply

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

Similar topics

1 post views Thread by Spock | last post: by
4 posts views Thread by Robert Bravery | last post: by
4 posts views Thread by Geoff | last post: by
7 posts views Thread by David P. Donahue | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.