DetailsView.CreateChildControls Method (IEnumerable, Boolean)
.NET Framework 3.0
Creates the control hierarchy used to render the DetailsView control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
protected: virtual int CreateChildControls ( IEnumerable^ dataSource, bool dataBinding ) override
protected int CreateChildControls ( IEnumerable dataSource, boolean dataBinding )
protected override function CreateChildControls ( dataSource : IEnumerable, dataBinding : boolean ) : int
Not applicable.
Parameters
- dataSource
An IEnumerable that represents the data source for the DetailsView control.
- dataBinding
true to indicate that this method is being called during data binding; otherwise, false.
Return Value
The number of items in the data source.| Exception type | Condition |
|---|---|
| dataSource returns a null DataSourceView. - or - dataSource is not an ICollection and cannot return a total row count. - or - dataBinding is false and dataSource does not implement the ICollection interface. - or - dataSource does not implement the ICollection interface and AllowPaging is set to true. |
Community Additions
ADD
Show: