Refere to changes in dataset

  • Thread starter Thread starter Flare
  • Start date Start date
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
 
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
 
Back
Top