BaseDataList.CreateControlHierarchy(Boolean) Method

Definition

When overridden in a derived class, creates the control hierarchy for the data listing control with or without the specified data source.

C#
protected abstract void CreateControlHierarchy(bool useDataSource);

Parameters

useDataSource
Boolean

true to use the control's data source; otherwise, false.

Remarks

The CreateControlHierarchy method is a helper method used by a derived class to create its control hierarchy.

Notes to Implementers

When you create a data listing control that derives from BaseDataList, you must override the CreateControlHierarchy(Boolean) method to create the control hierarchy for the derived data listing control.

Applies to

Product Versions
.NET Framework 1.1, 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