wpf-devexpress-dot-xpf-dot-grid-dot-tableview-3c2f6558.md
Gets or sets the template that defines the appearance of band headers. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public DataTemplate BandHeaderTemplate { get; set; }
Public Property BandHeaderTemplate As DataTemplate
| Type | Description |
|---|---|
| DataTemplate |
A DataTemplate object that defines the appearance of band headers.
|
The data context for the BandHeaderTemplate property is the GridControlBand.Header property’s value. The following code sample wraps text in band headers:
<dxg:GridControl.View>
<dxg:TableView x:Name="view" AutoWidth="True">
<dxg:TableView.BandHeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" TextWrapping="Wrap"/>
</DataTemplate>
</dxg:TableView.BandHeaderTemplate>
</dxg:TableView>
</dxg:GridControl.View>
Refer to the following help topic for more information: Bands.
See Also