OleDbDataAdapter::RowUpdating Event
.NET Framework (current version)
Occurs during Update before a command is executed against the data source. The attempt to update is made. Therefore, the event occurs.
Assembly: System.Data (in System.Data.dll)
When you use Update, there are two events that occur per data row updated. The order of execution is as follows:
The values in the DataRow are moved to the parameter values.
The OnRowUpdating event is raised.
The command executes.
If the command is set to FirstReturnedRecord, the first returned result is placed in the DataRow.
If there are output parameters, they are placed in the DataRow.
The OnRowUpdated event is raised.
AcceptChanges is called.
The following example shows the RowUpdating and RowUpdated events being used.
.NET Framework
Available since 1.1
Available since 1.1
Show: