S
Saso Zagoranski
Hi again!
I have two DataSets... I add some data to both of the dataset and the I
call:
dataAdapter1.Update(dataSet1);
dataAdapter2.Update(dataSet2);
if there is an exception in any of the two dataset I want ALL the data to be
discarded, so I call:
try
{
...
}
catch
{
dataSet1.RejectChanges();
dataSet2.RejectChanges();
}
The problem is, that if I get an exception updating the second dataset
(dataSet2) the data in dataSet1 is stored in the
database despite the fact that I call dataSet1.RejectChanges()...
What am I doing wrong?
Thank,
saso
I have two DataSets... I add some data to both of the dataset and the I
call:
dataAdapter1.Update(dataSet1);
dataAdapter2.Update(dataSet2);
if there is an exception in any of the two dataset I want ALL the data to be
discarded, so I call:
try
{
...
}
catch
{
dataSet1.RejectChanges();
dataSet2.RejectChanges();
}
The problem is, that if I get an exception updating the second dataset
(dataSet2) the data in dataSet1 is stored in the
database despite the fact that I call dataSet1.RejectChanges()...
What am I doing wrong?
Thank,
saso