• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

Vb.Net-dataGrid

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
SandhiyaKrishnamoorthy
Asked:
SandhiyaKrishnamoorthy
1 Solution
 
2nddegreeCommented:
Try this

Me.BindingContext(ds, "Table_Name").EndCurrentEdit()
            adapter1.update(ds,"Table_Name")
            ds.AcceptChanges()
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now