DataList.PrepareControlHierarchy Method

Definition

Prepares the control hierarchy for rendering in the DataList control.

C#
protected override void PrepareControlHierarchy();
C#
protected internal override void PrepareControlHierarchy();

Remarks

The PrepareControlHierarchy method is used primarily by control developers when deriving a custom control from the DataList control.

The PrepareControlHierarchy prepares the control hierarchy and sets styles for contained DataListItem controls before the child controls are rendered.

Notes to Inheritors

Override the PrepareControlHierarchy() method to customize styles for controls contained in the DataList before they are rendered.

Applies to

Produkt Verzie
.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

See also