Skip to main content
A newer version of this page is available. .

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

Declaration

public bool? ShowCounts { get; set; }

Property Value

Type Description
Nullable<Boolean>

true, to show counts; otherwise, false.

Remarks

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

Set the ShowCounts property to false to not show counts.

Tip

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