471,593 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

DataGridView, 2 Forms and updating a database with textboxes

Hello,
I am a student and I need help with my VB task. I am currently using VB 2005 Express and I am fairly new to it, although I have programed in Delphi before.
--------------------------------------
My Problem is this:
--------------------------------------
I have 2 forms. The first form contains a DataGridView and a button. The DataGridView is bound to an access database, and loads at form_load. The second form contains several textboxes and a button. When I have entered data into all the text boxes, and then click the button, I want the database to be updated with these entries into a new row, and also have the DataGridView updated with the new row.

I have searched around and I keep coming up with different answers, also producing different errors. I managed to get the textboxes to update a DataGridView, but not a Bound DataGridView.

Any help at all is very much appreciated, and any suggestions welcome.
Thanks to all on the forum.
-SnowDog
Aug 13 '07 #1
2 2114
It sounds like if you use Form View data control, and enable editing, you should be able to accomplish this task easily.
Aug 30 '07 #2
Hello,
I am a student and I need help with my VB task. I am currently using VB 2005 Express and I am fairly new to it, although I have programed in Delphi before.
--------------------------------------
My Problem is this:
--------------------------------------
I have 2 forms. The first form contains a DataGridView and a button. The DataGridView is bound to an access database, and loads at form_load. The second form contains several textboxes and a button. When I have entered data into all the text boxes, and then click the button, I want the database to be updated with these entries into a new row, and also have the DataGridView updated with the new row.

I have searched around and I keep coming up with different answers, also producing different errors. I managed to get the textboxes to update a DataGridView, but not a Bound DataGridView.

Any help at all is very much appreciated, and any suggestions welcome.
Thanks to all on the forum.
-SnowDog
This article presents several ways of binding data to DataGridView.
Good luck.
http://msdn2.microsoft.com/en-us/library/fbk67b6z.aspx
Aug 30 '07 #3

Post your reply

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

Similar topics

reply views Thread by Chad | last post: by
3 posts views Thread by Carlos Cruz | last post: by
3 posts views Thread by Andrus | last post: by
reply views Thread by Anwar ali | 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.