Skip to main content
Tag

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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