Split the dataadapter modified, insert and delete updates

  • Thread starter Thread starter HansvB69
  • Start date Start date
H

HansvB69

Guest
Hi,

Is it possible to only use the insert part of a datadapter? I use a dataapter now like this:


da.Update((DataTable)bindingSource1.DataSource);

The dataadapter saves all modified, deleted or inserted recods at once now. I want to split this so i can first insert the new records then apply the modigfeid records and the deleted records. I want this because when i delete a record with a foreign key the delete stops with an exception and than noting is changed. When the update stops because of an foreign exception i still want to be able to save the new and modified records.


Greatings, Hans

Continue reading...
 
Back
Top