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

DataGridView, 2 Forms and updating a database with textboxes

P: 1
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
Share this Question
Share on Google+
2 Replies


daJunkCollector
P: 76
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

VBPhilly
P: 95
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.