System.Web.UI.WebControls.HyperLinkField.InitializeCell Method

Initializes a cell in a System.Web.UI.WebControls.HyperLinkField object.

Syntax

public override void InitializeCell (DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex)

Parameters

cell
A System.Web.UI.WebControls.DataControlFieldCell that contains the text or controls of the System.Web.UI.WebControls.HyperLinkField.
cellType
One of the System.Web.UI.WebControls.DataControlCellType values.
rowState
One of the System.Web.UI.WebControls.DataControlRowState values that specifies the state of the row containing the System.Web.UI.WebControls.HyperLinkField.
rowIndex
The index of the row in the table.

Remarks

The HyperLinkField.InitializeCell(DataControlFieldCell, DataControlCellType, DataControlRowState, int) method is called by the data-bound control that contains the System.Web.UI.WebControls.HyperLinkField object to initialize a System.Web.UI.WebControls.HyperLink control with the text and URL of the link.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0