TableView.BandHeaderTemplate Property
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.1.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
DataTemplate | A DataTemplate object that defines the appearance of band headers. |
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