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

一个包含 .. 的文本或控件的 DataControlFieldCellHyperLinkField

cellType
DataControlCellType

其中一个 DataControlCellType 值。

rowState
DataControlRowState

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

rowIndex
Int32

表中行的索引。

注解

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

适用于