469,300 Members | 2,191 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,300 developers. It's quick & easy.

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 978

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 zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.