Solved

Vb.Net-dataGrid

Posted on 2004-09-23
1
192 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
Comment Utility
Try this

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now