TableView.BandHeaderTemplate Property
In This Article
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.v24.2.dll
NuGet Package: DevExpress.Wpf.Grid.Core
#Declaration
public DataTemplate BandHeaderTemplate { get; set; }
#Property Value
Type | Description |
---|---|
Data |
A Data |
#Remarks
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