wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-61d2dfb1.md
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.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public ControlTemplate AutoFilterRowDisplayTemplate { get; set; }
Public Property AutoFilterRowDisplayTemplate As ControlTemplate
| Type | Description |
|---|---|
| ControlTemplate |
The template that displays a column’s value within the automatic filter row.
|
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:
<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