A newer version of this page is available. Switch to the current version.

FilterElement.ShowCounts Property

Gets or sets whether the Filter Element shows the record count next to filter values.

Namespace: DevExpress.Xpf.Core.FilteringUI

Assembly: DevExpress.Xpf.Grid.v19.1.dll


public bool? ShowCounts { get; set; }

Property Value

Type Description

true, to show counts; otherwise, false.


The Filter Element shows the record count next to filter values:

Set the ShowCounts property to false to not show counts.


Demo: Checked List

Requires a WPF Subscription. Download

<dxfui:CheckedListFilterElement x:Name="filterElement" FieldName="Country"
                                Context="{Binding ElementName=grid, Path=FilteringContext}" />
<CheckBox IsChecked="{Binding ElementName=filterElement, Path=SelectAllWhenFilterIsNull}"
          Content="Select All When Filter Is Null" />
<CheckBox IsChecked="{Binding ElementName=filterElement, Path=ShowCounts}"
          Content="Show Counts" /> 
See Also