Back to Devexpress

ColumnBase.AutoFilterRowDisplayTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-61d2dfb1.md

latest2.5 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ControlTemplate AutoFilterRowDisplayTemplate { get; set; }
vb
Public Property AutoFilterRowDisplayTemplate As ControlTemplate

Property Value

TypeDescription
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:

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

AutoFilterRowEditTemplate

ColumnBase Class

ColumnBase Members

DevExpress.Xpf.Grid Namespace