How to update to DB with a text box that is bind to dataset

  • Thread starter Thread starter xs
  • Start date Start date
X

xs

Hi,

I have a textbox that is bind to a dataset. I would like to update the data
using this textbox. After updating, the dataset will be passed to a web
service. But how do I save changes to the dataset in the first place (before
passing it to WS). Please advise. Thanks.

xs
 
If I understand your question the way you save changes to a DataSet is by
calling its AcceptChanges() method.

Dim ds As New DataSet()

' Do some data manipulation

ds.AcceptChanges()

This will cause all proposed values to be changed to current values.


Brian Parlier
 
Ok...But what if the data manipulation is at the GUI. That means after
changing the contents in the textbox, do I call ds.AcceptChanges() right
away?
 
Berubea,

Why than not make a new message with a description of your question. This
cannot be that difficult it is quiet basic.

Cor

"Berubea Andre"
..
 

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

Back
Top