Skip to main content
Tag

ColumnBase.AutoFilterRowDisplayTemplate Property

Gets or sets a template that displays a column’s value within the Automatic Filter Row. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public ControlTemplate AutoFilterRowDisplayTemplate { get; set; }

Property Value

Type Description
ControlTemplate

The template that displays a column’s value within the automatic filter row.

Remarks

If the TableView.AutoFilterRowPosition property is set to Cell (default value), the template’s data context is an EditGridCellData object.

The following code sample displays bold text if the Automatic Filter Row is in display mode:

AutoFilterRowDisplayTemplate

<dxg:GridColumn FieldName="ProductName">
    <dxg:GridColumn.AutoFilterRowDisplayTemplate>
        <ControlTemplate>
            <TextBlock Text="{Binding Column.AutoFilterValue}"
                       VerticalAlignment="Center"
                       FontWeight="Bold" Padding="6,0"/>
        </ControlTemplate>
    </dxg:GridColumn.AutoFilterRowDisplayTemplate>
</dxg:GridColumn>

If the TableView.AutoFilterRowPosition property is set to Header, the template’s data context is a GridColumn object.

See Also