OdbcDataAdapter.RowUpdated 事件

定义

在针对数据源执行命令之后的更新操作期间发生。Occurs during an update operation after a command is executed against the data source.

public:
 event System::Data::Odbc::OdbcRowUpdatedEventHandler ^ RowUpdated;
public event System.Data.Odbc.OdbcRowUpdatedEventHandler RowUpdated;
public event System.Data.Odbc.OdbcRowUpdatedEventHandler? RowUpdated;
member this.RowUpdated : System.Data.Odbc.OdbcRowUpdatedEventHandler 
Public Custom Event RowUpdated As OdbcRowUpdatedEventHandler 

事件类型

OdbcRowUpdatedEventHandler

注解

使用时 Update ,每个更新的数据行发生两个事件。When you use Update, there are two events that occur per data row updated. 执行顺序如下所示:The order of execution is as follows:

  1. 中的值 DataRow 将被移动到参数值中。The values in the DataRow are moved to the parameter values.

  2. 引发 OnRowUpdating 事件。The OnRowUpdating event is raised.

  3. 命令执行。The command executes.

  4. 如果命令设置为,则 FirstReturnedRecord 返回的第一个结果位于中 DataRowIf the command is set to FirstReturnedRecord, the first returned result is placed in the DataRow.

  5. 如果有输出参数,则将它们放在中 DataRowIf there are output parameters, they are placed in the DataRow.

  6. 引发 OnRowUpdated 事件。The OnRowUpdated event is raised.

  7. 调用 AcceptChangesAcceptChanges is called.

适用于