When a custom DataSet is provided using the ProvideDataView event,
you can handle this event to write any changes made by the user back to your datastore.
The event handler receives an argument of type SaveDataEventArgs containing data related to this event. The following SaveDataEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| DataTable | The data table that contains the data to save |
| IsHandled | Set this property to true if you have handled this event. This will prevent the table editor from trying to save the changes itself to the database. |
OleDbCommand cmd; // Populate this with a SQL Select command
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
OleDbCommandBuilder cb = new OleDbCommandBuilder(da);
da.Update(e.DataTable);
e.IsHandled = true;
TableEditor Class | DVXP.DXTableEditor Namespace | SaveDataEventArgs