Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
these commands not work today when i was tending to save changes that made by a gridview to the database and i can't see why!?
C#
this.validate();
tablebindingsource.endedit();
tableadaptor.update(dataset1.table1);
if i forget any command to compelete storing data to the db??!
Posted
Updated 21-Jun-11 9:33am
v2

1 solution

I think you might be missing dataset1.AcceptChanges(), before calling adaptor.update.
 
Share this answer
 
Comments
maryamtooty 23-Jun-11 2:09am    
thanks but i check that before and not work.
i find out something more important actualy!
these commands update database but the question is which one?
visual studio make 2 other db atleast, program updates that one is inside bin directory.
is it a bug for visual studio?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900