HyperLinkField.InitializeCell Method (DataControlFieldCell, DataControlCellType, DataControlRowState, Int32)

 

Initializes a cell in a HyperLinkField object.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

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

Parameters

cell
Type: System.Web.UI.WebControls.DataControlFieldCell

A DataControlFieldCell that contains the text or controls of the HyperLinkField.

cellType
Type: System.Web.UI.WebControls.DataControlCellType

One of the DataControlCellType values.

rowState
Type: System.Web.UI.WebControls.DataControlRowState

One of the DataControlRowState values that specifies the state of the row containing the HyperLinkField.

rowIndex
Type: System.Int32

The index of the row in the table.

The InitializeCell method is called by the data-bound control that contains the HyperLinkField object to initialize a HyperLink control with the text and URL of the link.

.NET Framework
Available since 2.0
Return to top
Show: