Skip to main content
Tag

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.v23.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