HyperLinkField.InitializeCell 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化对象中的 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
- cellType
- DataControlCellType
其中一个 DataControlCellType 值。
- rowState
- DataControlRowState
指定 DataControlRowState 包含该 HyperLinkField行的行状态的值之一。
- rowIndex
- Int32
表中行的索引。
注解
该方法 InitializeCell 由包含对象的数据绑定控件 HyperLinkField 调用,该控件使用链接的文本和 URL 初始化 HyperLink 控件。