Export (0) Print
Expand All

TemplateField.InitializeCell Method

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

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

public override void InitializeCell (
	DataControlFieldCell cell,
	DataControlCellType cellType,
	DataControlRowState rowState,
	int rowIndex
)
public void InitializeCell (
	DataControlFieldCell cell, 
	DataControlCellType cellType, 
	DataControlRowState rowState, 
	int rowIndex
)
public override function InitializeCell (
	cell : DataControlFieldCell, 
	cellType : DataControlCellType, 
	rowState : DataControlRowState, 
	rowIndex : int
)
Not applicable.

Parameters

cell

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

cellType

One of the DataControlCellType values.

rowState

One of the DataControlRowState values, specifying the state of the row that contains the DataControlFieldCell.

rowIndex

The index of the row that the DataControlFieldCell is contained in.

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft