GridView.OnRowDataBound(GridViewRowEventArgs) 方法 (System.Web.UI.WebControls)

GridView.OnRowDataBound(GridViewRowEventArgs) 方法 (System.Web.UI.WebControls)

引发 RowDataBound 事件。

protected:

virtual void OnRowDataBound(System::Web::UI::WebControls::GridViewRowEventArgs ^ e);

protected virtual void OnRowDataBound(System.Web.UI.WebControls.GridViewRowEventArgs e);

abstract member OnRowDataBound : System.Web.UI.WebControls.GridViewRowEventArgs -> unit

override this.OnRowDataBound : System.Web.UI.WebControls.GridViewRowEventArgs -> unit

Protected Overridable Sub OnRowDataBound (e As GridViewRowEventArgs)

参数

e

GridViewRowEventArgs

包含事件数据的 A GridViewRowEventArgs 。

注解

GridView在呈现控件之前,控件中的每个行都必须绑定到数据源中的记录。

RowDataBound当数据行(由GridViewRow对象表示)绑定到控件中的数据GridView时,将引发该事件。 这样,便可以提供执行自定义例程的事件处理方法,例如,每当发生此事件时修改绑定到行的数据的值。

引发事件会通过委托调用事件处理程序。 有关详细信息,请参阅 处理和引发事件。

该方法 OnRowDataBound 还允许派生类在不附加委托的情况下处理事件。 这是处理派生类中的事件的首选技术。

Visual Studio 网站项目包含源代码,可随本主题一起 提供:下载。

继承者说明

在派生类中重写 OnRowDataBound(GridViewRowEventArgs) 时,请务必调用基类的方法,以便已注册的 OnRowDataBound(GridViewRowEventArgs) 委托接收事件。

适用于

另请参阅

GridViewRowEventArgs

RowDataBound

RowCreated

OnRowCreated(GridViewRowEventArgs)

相关推荐

华为手机账户更换教程:绑定手机号与实名认证变更指南
365bet哪个国家的

华为手机账户更换教程:绑定手机号与实名认证变更指南

🗓️ 07-25 👁️ 4480
提升世界杯下注技巧的整体思路:从“瞎猜”到有体系
365bet体育线上

提升世界杯下注技巧的整体思路:从“瞎猜”到有体系

🗓️ 06-17 👁️ 1614
高情商聊天术:被夸漂亮怎么回?
365bet体育线上

高情商聊天术:被夸漂亮怎么回?

🗓️ 10-27 👁️ 5467
免费DJ 混音软件 Mixxx v2.5.2 中文版下载
bet3365

免费DJ 混音软件 Mixxx v2.5.2 中文版下载

🗓️ 11-03 👁️ 4773
新版美图秀秀彩虹教程 美图秀秀里面的彩虹贴纸在哪里
苹果电脑除号是哪个键怎么输入
365bet哪个国家的

苹果电脑除号是哪个键怎么输入

🗓️ 08-07 👁️ 1671