The method that will handle the
RowUpdating event of a
MimerDataAdapter.
The following example shows the general logic for adding and removing a
RowUpdating event handler.
No example is available for C++, JScript or Visual Basic. To view a C# example, click the Language Filter button in the upper-left corner of the page.
...
MimerRowUpdatingCommandHandler rowUpdatingHandler = new MimerRowUpdatingEventHandler(dataAdapter_RowUpdating);
MimerDataAdapter dataAdapter = new MimerDataAdapter();
//
// Add event handler
//
dataAdapter.RowUpdating += rowUpdatingHandler;
try {
...
//
// Event handler is called as part of Update
//
dataAdapter.Update();
...
} finally {
//
// Remove event handler
//
dataAdapter.RowUpdating -= rowUpdatingHandler;
}
}
private void dataAdapter_RowUpdating(object sender, MimerRowUpdatingEventArgs e) {
//
// Event handling logic
//
...
}
.NET Framework
Version 2.0 or later