Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

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.

Run Demo: Checked List

<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