FormView.CreateChildControls Method (IEnumerable, Boolean)
.NET Framework (current version)
Creates the control hierarchy used to render the FormView control with the specified data source.
Assembly: System.Web (in System.Web.dll)
Protected Overrides Function CreateChildControls ( dataSource As IEnumerable, dataBinding As Boolean ) As Integer
Parameters
- dataSource
-
Type:
System.Collections.IEnumerable
An IEnumerable that represents the data source used to create the control hierarchy.
- dataBinding
-
Type:
System.Boolean
true to indicate that the control hierarchy is created directly from the data source; false to indicate the control hierarchy is created from the view state.
| Exception | Condition |
|---|---|
| HttpException | The DataSourceView of the IDataSource to which the FormView control is bound is null. |
Notes to Inheritors:
When extending the FormView class, you can override this method to create your own control hierarchy.
.NET Framework
Available since 2.0
Available since 2.0
Show: