Solved

Vb.Net-dataGrid

Posted on 2004-09-23
1
199 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
[X]
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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is an explanation of a simple data model to help parse a JSON feed
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Six Sigma Control Plans
Progress

717 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