Back to Devexpress

TableView.AutoFilterRowCellStyle Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-4edaae81.md

latest2.8 KB
Original Source

TableView.AutoFilterRowCellStyle Property

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

Declaration

csharp
public Style AutoFilterRowCellStyle { get; set; }
vb
Public Property AutoFilterRowCellStyle As Style

Property Value

TypeDescription
Style

The style applied to the Automatic Filter Row‘s cells.

|

Remarks

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:

xaml
<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

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace