A
anyMouse
I have the following scenario, and would appreciate some advice on the
best approach to give the results I require:
Simple example:
------------------------
2 Datasets, the second cloned from the first:
dsOriginal.Tables[0] has 2 rows (string, boolean)
row 1: red, true
row 2: blue, true
The second cloned Dataset table is populated as follows:
dsNewData.Tables[0] has 2 rows (string, boolean)
row 1: red, false
row 2: green, true
I want to compare the dsNewData to dsOriginal to give the following
result:
dsOriginal.Tables[0].Rows[0] has been changed (from "red, true" to
"red, false")
dsOriginal.Tables[0].Rows[1] has been deleted (its not in
dsNewData.Tables[0])
dsNewData.Tables[0].Rows[1] has been added ("green, false" did not
exist in dsOriginal)
I have been trying to get this result using the DataSet.Merge method,
but the RowState does not reflect the results I have listed above. Any
other suggestions would be greatly appreciated!
best approach to give the results I require:
Simple example:
------------------------
2 Datasets, the second cloned from the first:
dsOriginal.Tables[0] has 2 rows (string, boolean)
row 1: red, true
row 2: blue, true
The second cloned Dataset table is populated as follows:
dsNewData.Tables[0] has 2 rows (string, boolean)
row 1: red, false
row 2: green, true
I want to compare the dsNewData to dsOriginal to give the following
result:
dsOriginal.Tables[0].Rows[0] has been changed (from "red, true" to
"red, false")
dsOriginal.Tables[0].Rows[1] has been deleted (its not in
dsNewData.Tables[0])
dsNewData.Tables[0].Rows[1] has been added ("green, false" did not
exist in dsOriginal)
I have been trying to get this result using the DataSet.Merge method,
but the RowState does not reflect the results I have listed above. Any
other suggestions would be greatly appreciated!