AcceptChanges does nothing ??

D

Dmitry Sazonov

Simply example: one table with 2 fields
ID, number, primary key
Name, string

One typed dataset with that table.
One OleDbData Adapter, created by wisard with select SQL= "select id, name
from TestTable"
Windows form with one DataGrid, binded to this data table as:

TestTableAdapter.Fill(ds);
dataGrid1.DataSource = ds.TestTable;

Then I'm change something and calling:
ds.AcceptChanges();

No any data updated by this command :-(( no any error returned with
"ds.TestTable.GetErrors();"

Waht's wrong ?
 
D

Dmitry Sazonov

Sorry for dumb question, I fixed it myself by calling
TestTableAdapter.Update(ds);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top