FormView.CreateChildControls Method (IEnumerable, Boolean)
Assembly: System.Web (in system.web.dll)
protected override int CreateChildControls ( IEnumerable dataSource, bool dataBinding )
protected override function CreateChildControls ( dataSource : IEnumerable, dataBinding : boolean ) : int
An IEnumerable that represents the data source used to create the control hierarchy.
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.
Return ValueThe number of items created from the data source.
The CreateChildControls(IEnumerable,Boolean) method is a helper method called by the FormView control to create the control hierarchy for the FormView control. When the dataBinding parameter is true, data binding is performed before the control hierarchy is created.Notes to Inheritors: When extending the FormView class, you can override this method to create your own control hierarchy.