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
事件类型
注解
使用时 Update ,每个更新的数据行发生两个事件。When you use Update, there are two events that occur per data row updated. 执行顺序如下所示:The order of execution is as follows:
中的值 DataRow 将被移动到参数值中。The values in the DataRow are moved to the parameter values.
引发 OnRowUpdating 事件。The OnRowUpdating event is raised.
命令执行。The command executes.
如果命令设置为,则
FirstReturnedRecord返回的第一个结果位于中 DataRow 。If the command is set toFirstReturnedRecord, the first returned result is placed in the DataRow.如果有输出参数,则将它们放在中 DataRow 。If there are output parameters, they are placed in the DataRow.
引发 OnRowUpdated 事件。The OnRowUpdated event is raised.
调用 AcceptChanges。AcceptChanges is called.