DataListHeaderTemplate Property

The template control type to use for the header

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public Type HeaderTemplate { get; set; }

Property Value

Type

Remarks

The header template is bound to the data source as a whole rather than an individual row. If not set, a header section will not be shown.

Example

C#
// AddressHeader is a user control derived from TemplateControl
dataList.HeaderTemplate = typeof(AddressHeader);

Exceptions

ArgumentExceptionThis is thrown if the specified type is not derived from TemplateControl.

See Also