troubleshooting Question

Windows form containing datagridview

Avatar of jturkington
jturkington asked on
.NET ProgrammingMicrosoft Development
4 Comments1 Solution440 ViewsLast Modified:
Hi,
I am designing a windows form which has a datagridview and other controls such as text boxes and combo boxes etc. I was wondering what was the best way to do a database insert. I can get the datagridview data inserted to the database using the code below thats fine but how should i go about entering the data from the textboxes and comboboxes in and around this code as they are both linked!!
Thanks
DataTable dt = ds.Tables["Orders"];
this.dataGridView1.BindingContext[dt].EndCurrentEdit();
this.da.Update(dt);
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
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 4 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