GridView.CreateChildControls(IEnumerable, Boolean) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the control hierarchy used to render the GridView control using the specified data source.
protected:
override int CreateChildControls(System::Collections::IEnumerable ^ dataSource, bool dataBinding);
protected override int CreateChildControls(System.Collections.IEnumerable dataSource, bool dataBinding);
override this.CreateChildControls : System.Collections.IEnumerable * bool -> int
Protected Overrides Function CreateChildControls (dataSource As IEnumerable, dataBinding As Boolean) As Integer
- dataSource
- IEnumerable
An IEnumerable that contains the data source for the GridView control.
- dataBinding
- Boolean
true
to indicate that the child controls are bound to data; otherwise, false
.
The number of rows created.
dataSource
returns a null DataSourceView.
-or-
dataSource
does not implement the ICollection interface and cannot return a TotalRowCount.
-or-
AllowPaging is true
and dataSource
does not implement the ICollection interface and cannot perform data source paging.
-or-
dataSource
does not implement the ICollection interface and dataBinding
is set to false
.
The CreateChildControls method is used to create the control hierarchy of the GridView control.
Примітка
This method is used primarily by control developers to extend the GridView control.
Продукт | Версії |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: