New to Telerik UI for WPF? Download free 30-day trial

How to Highlight Header Cell when the Column is Filtered


Product Version 2019.3.917
Product RadGridView for WPF


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


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.

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

See Also

In this article