M
Miro
Why isn't this working?
I have a strongly typed DataSet and VS.NET-created
DataAdapter. I create a new DataSet and add some Data:
myStronglyTypedDataset updates = new
myStronglyTypedDataset();
myStronglyTypedDataset.aTABLERow aRow =
updates.aTABLE.NewaTABLERow();
aRow["Col1"] = "value1";
aRow["Col2"] = "value2";
updates.aTABLE.Rows.Add(aRow);
I cannot update the Data-source directly cause this will
create duplicates, so I try to merge the updates with the
existing Data:
myDataAdapter.Fill(originDataset);
originDataSet.Merge(updates);
myDataAdapter.Update(originDataSet);
No Data is added/changed.
How can this be solved?
/Miro
I have a strongly typed DataSet and VS.NET-created
DataAdapter. I create a new DataSet and add some Data:
myStronglyTypedDataset updates = new
myStronglyTypedDataset();
myStronglyTypedDataset.aTABLERow aRow =
updates.aTABLE.NewaTABLERow();
aRow["Col1"] = "value1";
aRow["Col2"] = "value2";
updates.aTABLE.Rows.Add(aRow);
I cannot update the Data-source directly cause this will
create duplicates, so I try to merge the updates with the
existing Data:
myDataAdapter.Fill(originDataset);
originDataSet.Merge(updates);
myDataAdapter.Update(originDataSet);
No Data is added/changed.
How can this be solved?
/Miro