0
yes,that's right.
when you execute the acceptchanges method, the DataRow's RowState property will change from Added orModified to Unchanged.
so DataAdapter will not get the changes.
0
yep it works, thanks.
it seems that the ds.AcceptChanges unmarks the rows that are modified, so the da soes nothing if it's called after.
0
i have encountered the same problem,and you can solve it by changing the sequence of the last two rows of codes.
.........
.........
ds.Tables[0].Rows[0]["LastName"]="Smith";
da.Update(ds,"Employees");
ds.AcceptChanges();
i have tried it in oracle,and it works.