New to Telerik UI for WPFStart a free 30-day trial

How to Highlight Header Cell when the Column is Filtered

Updated on Sep 15, 2025

Environment

Product Version2019.3.917
ProductRadGridView for WPF

Description

How to style the header cells when their parent column is filtered.

Solution

To apply conditional styling of the header cells only when their parent column has a filter applied to it, you can create a style for the GridViewHeaderCell element with a DataTrigger pointing to the IsActive property of the respective column's ColumnFilterDescriptor.

XAML
    <Style TargetType="telerik:GridViewHeaderCell">
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=Column.ColumnFilterDescriptor.(telerik:IColumnFilterDescriptor.IsActive), RelativeSource={RelativeSource Self}}" Value="True">
                <Setter Property="Background" Value="Red" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

See Also