Skip to main content
Tag

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public DataTemplate FilterEditorHeaderTemplate { get; set; }

#Property Value

Type Description
DataTemplate

The template that defines the appearance of the column header.

#Remarks

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

FilterEditorHeaderTemplate

<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