wpf-devexpress-dot-xpf-dot-grid-dot-tableview-4edaae81.md
Gets or sets the style applied to the Automatic Filter Row‘s cells. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public Style AutoFilterRowCellStyle { get; set; }
Public Property AutoFilterRowCellStyle As Style
| Type | Description |
|---|---|
| Style |
The style applied to the Automatic Filter Row‘s cells.
|
Target Type : FilterCellContentPresenter
The GridControl applies the AutoFilterRowCellStyle when the AutoFilterRowPosition property is set to Cell.
The following code sample highlights the Automatic Filter Row‘s cell if this cell contains a value:
<dxg:GridControl.View>
<dxg:TableView ShowAutoFilterRow="True"
ShowCriteriaInAutoFilterRow="True">
<dxg:TableView.AutoFilterRowCellStyle>
<Style TargetType="dxg:FilterCellContentPresenter">
<Style.Triggers>
<DataTrigger Binding="{Binding Column.AutoFilterValue, Converter={dxmvvm:ObjectToBooleanConverter}}"
Value="True">
<Setter Property="Background" Value="LightYellow"/>
</DataTrigger>
</Style.Triggers>
</Style>
</dxg:TableView.AutoFilterRowCellStyle>
</dxg:TableView>
</dxg:GridControl.View>
Refer to the following help topic for more information: Automatic Filter Row.
See Also