Creates the control hierarchy that is used to render the ListView control by using the specified data source.
System.Web.Extensions (in System.Web.Extensions.dll)
Protected Overridable Function CreateChildControls (
dataSource As IEnumerable,
dataBinding As Boolean
) As Integer
An object that contains the data source for the ListView control.
true to indicate that the child controls are bound to data; false to indicate that the control will re-create itself from view state during a postback.
The number of items that are created.
The CreateChildControls method is used to create the control hierarchy of the ListView control.
This method is primarily used by control developers to extend the ListView control.
Return to top
Available since 3.5