Back to Devexpress

DetailDescriptorBase.HeaderContentTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-detaildescriptorbase-0ed51d75.md

latest2.4 KB
Original Source

DetailDescriptorBase.HeaderContentTemplate Property

Gets or sets the template that will represent the Detail’s header section.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public DataTemplate HeaderContentTemplate { get; set; }
vb
Public Property HeaderContentTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A DataTemplate object specifying the Detail header’s content.

|

Remarks

The header section is visible when the DetailDescriptorBase.ShowHeader option is enabled.

The following table describes how to specify a template’s DataContent depending on the Detail type.

Detail TypeHeader’s DataContext
ContentDetailDescriptorHeader template’s DataContext is defined by the ContentDetailDescriptor.HeaderContent property.
DataControlDetailDescriptorHeader template’s DataContext is defined by the view’s DataViewBase.DetailHeaderContent property.

If the HeaderContentTemplate property is null ( Nothing in Visual Basic), then the properties listed above specify the text to be displayed within header sections.

See Also

ShowHeader

HeaderContent

DetailHeaderContent

DetailDescriptorBase Class

DetailDescriptorBase Members

DevExpress.Xpf.Grid Namespace