System.Web.UI.WebControls.TemplateField.InitializeCell Method

Adds text or controls to a cell's controls collection.

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.DataControlField.
cellType
One of the System.Web.UI.WebControls.DataControlCellType values.
rowState
One of the System.Web.UI.WebControls.DataControlRowState values, specifying the state of the row that contains the System.Web.UI.WebControls.DataControlFieldCell.
rowIndex
The index of the row that the System.Web.UI.WebControls.DataControlFieldCell is contained in.

Remarks

Call this method when you are creating a custom data-bound control that uses System.Web.UI.WebControls.DataControlFieldCell objects to initialize the cells of the table structure with data or controls.

Requirements

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