Data ListHeader Template Property
The template control type to use for the header
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public Type? HeaderTemplate { get; set; }VB
Public Property HeaderTemplate As Type
Get
SetC++
public:
property Type^ HeaderTemplate {
Type^ get ();
void set (Type^ value);
}F#
member HeaderTemplate : Type with get, setProperty Value
TypeRemarks
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);VB
' AddressHeader is a user control derived from TemplateControl
dataList.HeaderTemplate = GetType(AddressHeader)C++
No code example is currently available or this language may not be supported.F#
No code example is currently available or this language may not be supported.Exceptions
| ArgumentException | This is thrown if the specified type is not derived from TemplateControl. |