'Declaration Public Event RowUpdated As UniRowUpdatedEventHandler
public event UniRowUpdatedEventHandler RowUpdated
The event handler receives an argument of type RowUpdatedEventArgs containing data related to this event. The following RowUpdatedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Command | Gets the System.Data.IDbCommand executed when System.Data.Common.DbDataAdapter.Update(System.Data.DataSet) is called. |
Errors | Gets any errors generated by the .NET Framework data provider when the System.Data.Common.RowUpdatedEventArgs.Command was executed. |
RecordsAffected | Gets the number of rows changed, inserted, or deleted by execution of the SQL statement. |
Row | Gets the System.Data.DataRow sent through an System.Data.Common.DbDataAdapter.Update(System.Data.DataSet). |
RowCount | Gets the number of rows processed in a batch of updated records. |
StatementType | Gets the type of SQL statement executed. |
Status | Gets the System.Data.UpdateStatus of the System.Data.Common.RowUpdatedEventArgs.Command property. |
TableMapping | Gets the System.Data.Common.DataTableMapping sent through an System.Data.Common.DbDataAdapter.Update(System.Data.DataSet). |
When using the System.Data.Common.DbDataAdapter.Update(System.Data.DataSet) method, there are two events that occur per data row updated. The order of execution is as follows:
- The values in the System.Data.DataRow are moved to the parameter values.
- The RowUpdating event is raised.
- The command executes.
- If the System.Data.UpdateRowSource enumeration is set to System.Data.UpdateRowSource.FirstReturnedRecordS, the first returned result is placed in the System.Data.DataRow.
- If there are output parameters, they are placed in the System.Data.DataRow.
- The RowUpdated event is raised.
- System.Data.DataRow.AcceptChanges is called.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2