Back to Devexpress

ColumnBase.FilterEditorHeaderTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-7867847e.md

latest2.5 KB
Original Source

ColumnBase.FilterEditorHeaderTemplate Property

Gets or sets the template that defines the appearance of the column header displayed in the Filter Editor and Filter Panel. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
DataTemplate

The template that defines the appearance of the column header.

|

Remarks

The data context for the FilterEditorHeaderTemplate is the BaseColumn.HeaderCaption property value.

xaml
<dxg:GridColumn FieldName="ProductName">
      <dxg:GridColumn.HeaderTemplate>
         <DataTemplate>
            <TextBlock Text="{Binding}" 
                       FontWeight="Bold" 
                       Foreground="Red"/>
         </DataTemplate>
      </dxg:GridColumn.HeaderTemplate>
      <dxg:GridColumn.FilterEditorHeaderTemplate>
         <DataTemplate>
            <TextBlock Text="{Binding}" 
                       FontWeight="Bold" 
                       Foreground="Blue" 
                       FontStyle="Italic"/>
         </DataTemplate>
      </dxg:GridColumn.FilterEditorHeaderTemplate>
</dxg:GridColumn>

Refer to the following help topic for more information: Header Content Customization.

See Also

ColumnBase Class

ColumnBase Members

DevExpress.Xpf.Grid Namespace