Refere to changes in dataset

F

Flare

Hi. Im updating a database trough a webservice. When I catch my changes in a
datagrid i want to sent this updateinformation first by calling a
getChanges() and sent the new dataset to the webservice.

There i will update the variables AND check to see if the old values in the
db is equal to the originial values in my new small dataset. (To prevent
updating wrong information)

Here comes my question. How do I extract the "before" data from the dataset?
I know i could dataset.writexml(stream,XmlMode.diffgram) and extract it
manually, but isnt there a smarter way to get the before and after data in
my dataset?

Anders, DK
 
F

Flare

Here comes my question. How do I extract the "before" data from the
dataset?
I know i could dataset.writexml(stream,XmlMode.diffgram) and extract it
manually, but isnt there a smarter way to get the before and after data in
my dataset?

Found out my self.

dataset1.Tables["Table"].Row[0]["Name", RowState.Original];

Anders, DK
 

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