System.Web.UI.WebControls.GridView.CreateChildControls Method

Creates the control hierarchy used to render the System.Web.UI.WebControls.GridView control using the specified data source.

Syntax

protected override int CreateChildControls (IEnumerable data, bool dataBinding)

Parameters

data
Documentation for this section has not yet been entered.
dataBinding
true to indicate that the child controls are bound to data; otherwise, false.

Returns

The number of rows created.

Remarks

The GridView.CreateChildControls(IEnumerable, bool) method is used to create the control hierarchy of the System.Web.UI.WebControls.GridView control.

Note:

This method is used primarily by control developers to extend the System.Web.UI.WebControls.GridView control.

Requirements

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