troubleshooting Question

VB 2010 textbox databinding

Avatar of TechLad
TechLadFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft SQL ServerProgramming.NET ProgrammingVisual Basic.NETMicrosoft Development
56 Comments1 Solution1067 ViewsLast Modified:
Hello,

I've just moved to VB 2010 and just finding a few things difficult to get my head round. I previously had VB6 and what I'm after if some assistance on something.

On my VB6 program I had a form with a data grid which had a ADO but it was on the second form the textboxes populated with the database. It went something like this:

Private Sub DATA()
Set Textbox1.DataSource = Form1.ADODC1
Textbox1.Datafield = "FieldName"
End sub

So far on VB 2010 I've managed to get this

fdAppCustomerList Form:
 (This has the datagrid on it)
fdAppCustomer.fdCustomerID.Text = Me.DataGridView1.CurrentRow.Cells(0).Value.ToString

However, I'm not sure if that is correct because the code I've used to save changes isn't saving.

fdAppCustomer Form:
(This form displays the previous form datagrid fields into text boxes)
fdAppCustomerList.CustomersTableAdapter.Update(fdAppCustomerList.MY_CRM_Data_Set.Customers)

Can anyone assist me ?
ASKER CERTIFIED SOLUTION
John (Yiannis) Toutountzoglou
Instructor Multiengine Pilot

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 56 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 56 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros