keyongtech


  keyongtech > dotnet.languages.* > dotnet.languages.csharp > 03/2004

 #1  
03-03-04, 10:28 PM
Sagaert Johan
If i delete e record through the dataView ,the record is deleted in the
underlying dataset, but when calling the dataadapter.udate method the
database is not updated.(altough the record is deleted from the dataset )
(the haschanges record returns false )

Why ?
 #2  
03-03-04, 10:33 PM
Jon Skeet [C# MVP]
Sagaert Johan <REMOVEsagaert_j> wrote:
> If i delete e record through the dataView ,the record is deleted in the
> underlying dataset, but when calling the dataadapter.udate method the
> database is not updated.(altough the record is deleted from the dataset )
> (the haschanges record returns false )
>
> Why ?



Are you calling AcceptChanges yourself by any chance?
Similar Threads
dataadapter.Update() multiple table update strategies

Im not sure how to proceed on this one... I have a dataset with one table being populated by a complex join from several tables. Basically a fancy SELECT statement. Designer...

DataAdapter.Update

Hi, I underestand that DataAdapter.Update acts based on RowState to insert/update/delete records. Is there any possibility that I can see the scripts that DataAdapter...

How best to update DataAdapter to make DataGrid update immediately like table in Access would

Hey all, What is the best Event to use to trigger a DataAdapter Update so that any changes to the bound DataGrid are immediately updated to the underlying...

VB.NET DataAdapter.Update

Have googled and read the VS.NET documentation can't seem to getthe answer to the following. Environment: Framework 1.1 VB.NET WinForm Access database Using all automagic...

DataAdapter.Update Command Failed To Update Database

I am using the following code below to update a simple Access database with historical stock...


All times are GMT. The time now is 04:31 PM. | Privacy Policy