Jun 14, 2009 at 1:39 PM


I have a datagrid with a couple of records. When I call: tableadapterManager.updateAll() the changes are send to the database.
When I delete a record in my dataset and I get an error back; no changes are made.

At this moment I want to show the dataset, INCLUDING the record I (tried to) delete earlier.
So I set: tableadaptermanager.BackUpDataSetBeforeUpdate = true; just before the call to tableadapterManager.UpdateAll() 

But how can I get acces to this backup-dataset ??

Jun 23, 2009 at 4:33 AM

What exactly is tableadaptermanager? 

Jun 23, 2009 at 7:07 AM
Edited Jun 23, 2009 at 7:25 AM


 Hello Vinsibal,

In the datagrid I have records from the table: CT_VERDEELSLEUTELS. This is the code:

private CT_VERDEELSLEUTELSTableAdapter taVrds = new CT_VERDEELSLEUTELSTableAdapter();
TableAdapterManager taManager;
taManager = new TableAdapterManager();
taManager.CT_VERDEELSLEUTELSTableAdapter = taVrds;

Thank you 

Aug 31, 2009 at 4:00 PM
Edited Aug 31, 2009 at 4:03 PM

BackupDataSetBeforeUpdate is a boolean property.  Set it to true.  If there is an error your dataset will be reset to the way it was before the update.


Help Documentation