GridView.RaisePostBackEvent(String) 方法

定义

GridView 控件回发到服务器时引发此控件的合适的事件。

protected:
 virtual void RaisePostBackEvent(System::String ^ eventArgument);
protected virtual void RaisePostBackEvent (string eventArgument);
abstract member RaisePostBackEvent : string -> unit
override this.RaisePostBackEvent : string -> unit
Protected Overridable Sub RaisePostBackEvent (eventArgument As String)

参数

eventArgument
String

为引发的一个或多个事件创建 CommandEventArgs 时所使用的事件参数。

注解

当发生引发控件的相应事件的GridView回发事件时,页面会调用 RaisePostBackEvent 方法。 此调用在加载和更改通知完成后的页面生命周期中发生,但在预呈现发生之前发生。 已实现此方法,以便为引发的事件创建 CommandEventArgs 对象。

注意

控件开发人员主要使用此方法来扩展 GridView 控件。

适用于

另请参阅