Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Vb.Net-dataGrid

Posted on 2004-09-23
1
197 Views
Last Modified: 2010-04-17
How to add a new records to the database from the datagrid?
I tried all the methods like
adapter1.update(ds,"Table_Name")
nothing seems to work
please help
0
Comment
1 Comment
 

Accepted Solution

by:
2nddegree earned 20 total points
ID: 12159175
Try this

Me.BindingContext(ds, "Table_Name").EndCurrentEdit()
            adapter1.update(ds,"Table_Name")
            ds.AcceptChanges()
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question