c# textboxes and update

C

crop

I have some textboxes in form. They are binded to dataset. When i
execute the method dataadapter.Update(dataSet,"books");
the text from textbox doesn update records in database;
what i must do to this work property
thanks
 
W

W.G. Ryan eMVP

Before calling update, verify that the changes have taken using.
Debug.Assert(ds.HasChanges, "No Changes are Present);

If the assert fails, that means thre are no changes and that Update won't do
anything. You may need to call EndCurrentEdit on the
bindingManagerBase/BindingContext
 
C

crop

W.G. Ryan eMVP napisa³(a):
Before calling update, verify that the changes have taken using.
Debug.Assert(ds.HasChanges, "No Changes are Present);

If the assert fails, that means thre are no changes and that Update won't do
anything. You may need to call EndCurrentEdit on the
bindingManagerBase/BindingContext

its working, thanks:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top