Click here to Skip to main content
15,894,180 members
Home / Discussions / C#
   

C#

 
GeneralRe: closing an open form Pin
zuhx8-Jul-03 10:29
zuhx8-Jul-03 10:29 
GeneralRe: closing an open form Pin
.gonad8-Jul-03 15:46
.gonad8-Jul-03 15:46 
GeneralUpdating a data table Pin
totig8-Jul-03 1:03
totig8-Jul-03 1:03 
GeneralRe: Updating a data table Pin
Rocky Moore8-Jul-03 1:13
Rocky Moore8-Jul-03 1:13 
GeneralRe: Updating a data table Pin
totig8-Jul-03 1:26
totig8-Jul-03 1:26 
GeneralRe: Updating a data table Pin
totig8-Jul-03 1:58
totig8-Jul-03 1:58 
GeneralRe: Updating a data table Pin
Rocky Moore8-Jul-03 4:51
Rocky Moore8-Jul-03 4:51 
GeneralRe: Updating a data table Pin
STW10-Jul-03 20:49
STW10-Jul-03 20:49 
The database will not be updated because you call AcceptChanges() before DataAdapter.Update(). After you called AcceptChanges() the RowState for all Rows is "UnChanged". Then you call the DataAdapter.Update() but the Update Method cannot find any Rows which are marked as "Modified", so the DataAdapter doesn't update any rows.
Just call DataAdapter.Update() without AcceptChanges() before and the table will be updated in the database too.
I had the same problem as I started with C# and databases. The microsoft help is also confusing because everywhere is written to use AcceptChanges() to update a datatable.

Hope this helps.

Stefan

Generalssh & C# Pin
Karavaev Denis7-Jul-03 23:23
Karavaev Denis7-Jul-03 23:23 
GeneralRe: ssh & C# Pin
Daniel Turini8-Jul-03 2:05
Daniel Turini8-Jul-03 2:05 
Generaldatagrid Pin
Cristian_Dior7-Jul-03 21:29
Cristian_Dior7-Jul-03 21:29 
Questionhow do I change the views using the same frame windows Pin
mdolby7-Jul-03 14:34
mdolby7-Jul-03 14:34 
AnswerRe: how do I change the views using the same frame windows Pin
leppie7-Jul-03 14:42
leppie7-Jul-03 14:42 
GeneralArrays and Threads Pin
albean7-Jul-03 14:05
albean7-Jul-03 14:05 
GeneralRe: Arrays and Threads Pin
leppie7-Jul-03 14:22
leppie7-Jul-03 14:22 
GeneralRe: Arrays and Threads Pin
J. Dunlap7-Jul-03 14:34
J. Dunlap7-Jul-03 14:34 
GeneralRe: Arrays and Threads Pin
leppie7-Jul-03 14:35
leppie7-Jul-03 14:35 
GeneralRe: Arrays and Threads Pin
Daniel Turini7-Jul-03 15:04
Daniel Turini7-Jul-03 15:04 
GeneralRe: Arrays and Threads Pin
albean7-Jul-03 18:02
albean7-Jul-03 18:02 
GeneralYankees Pin
eggie57-Jul-03 11:38
eggie57-Jul-03 11:38 
GeneralRe: Yankees Pin
Rocky Moore7-Jul-03 12:00
Rocky Moore7-Jul-03 12:00 
GeneralRe: Yankees Pin
James T. Johnson8-Jul-03 4:10
James T. Johnson8-Jul-03 4:10 
GeneralMIME decoder Pin
jay_n7-Jul-03 11:26
jay_n7-Jul-03 11:26 
GeneralRe: MIME decoder Pin
Rocky Moore7-Jul-03 12:07
Rocky Moore7-Jul-03 12:07 
GeneralC# to SQL Server Type Translation Lookup Pin
perlmunger7-Jul-03 11:13
perlmunger7-Jul-03 11:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.