PC Review


Reply
Thread Tools Rate Thread

AcceptChanges does nothing ??

 
 
Dmitry Sazonov
Guest
Posts: n/a
 
      21st Jul 2003
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 ?



 
Reply With Quote
 
 
 
 
Dmitry Sazonov
Guest
Posts: n/a
 
      21st Jul 2003
Sorry for dumb question, I fixed it myself by calling
TestTableAdapter.Update(ds);


"Dmitry Sazonov" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 ?
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When should the AcceptChanges be called Tony Johansson Microsoft C# .NET 1 1st Oct 2010 07:35 PM
acceptChanges Tony Johansson Microsoft C# .NET 0 25th Jun 2009 06:07 PM
AcceptChanges Marc Microsoft ASP .NET 1 15th Sep 2008 09:57 AM
AcceptChanges() is very slow =?Utf-8?B?d2Vpc2huZw==?= Microsoft ADO .NET 11 16th Oct 2006 07:50 AM
c# - AcceptChanges - What's it used for? =?Utf-8?B?QW50?= Microsoft ADO .NET 4 7th Mar 2006 05:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:06 PM.