c# textboxes and update

  • Thread starter Thread starter crop
  • Start date Start date
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
 
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
 
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:)
 
Back
Top