Back to Devexpress

TableView.BandHeaderTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-3c2f6558.md

latest2.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
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:

xaml
<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

BandHeaderTemplateSelector

Appearance Customization

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace