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.1.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
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:
<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