HyperLinkField.InitializeCell 方法

定义

初始化 HyperLinkField 对象中的单元格。

public:
 override void InitializeCell(System::Web::UI::WebControls::DataControlFieldCell ^ cell, System::Web::UI::WebControls::DataControlCellType cellType, System::Web::UI::WebControls::DataControlRowState rowState, int rowIndex);
public override void InitializeCell (System.Web.UI.WebControls.DataControlFieldCell cell, System.Web.UI.WebControls.DataControlCellType cellType, System.Web.UI.WebControls.DataControlRowState rowState, int rowIndex);
override this.InitializeCell : System.Web.UI.WebControls.DataControlFieldCell * System.Web.UI.WebControls.DataControlCellType * System.Web.UI.WebControls.DataControlRowState * int -> unit
Public Overrides Sub InitializeCell (cell As DataControlFieldCell, cellType As DataControlCellType, rowState As DataControlRowState, rowIndex As Integer)

参数

cell
DataControlFieldCell

一个 DataControlFieldCell,包含 HyperLinkField 的文本或控件。

rowState
DataControlRowState

指定包含 DataControlRowState 的行的状态的 HyperLinkField 值之一。

rowIndex
Int32

表中行的索引。

注解

该方法 InitializeCell 由包含对象的数据绑定控件调用,该控件 HyperLinkField 使用链接的文本和 URL 初始化 HyperLink 控件。

适用于