Export (0) Print
Expand All

BoundField.Initialize Method

Initializes the BoundField object.

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

public override bool Initialize (
	bool enableSorting,
	Control control
)
public boolean Initialize (
	boolean enableSorting, 
	Control control
)
public override function Initialize (
	enableSorting : boolean, 
	control : Control
) : boolean
Not applicable.

Parameters

enableSorting

true if sorting is supported; otherwise, false.

control

The data control that owns the BoundField.

Return Value

false in all cases.

The Initialize method is called by the data control with which the BoundField object is associated to perform basic object initialization for instances of the field, before the field is ever added to a rows collection. Data controls such as DetailsView and GridView call the Initialize method in their CreateChildControls methods before other methods such as CreateRow are called to create specific rows with data.

Call this method when you are writing a custom data-bound control that uses TableCell objects to perform basic initialization for a BoundField object. Implement this method if your BoundField-derived type requires any object initialization before it populates TableCell objects with data or controls in the InitializeCell method.

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