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.v20.1.dll

Declaration

public bool? ShowCounts { get; set; }
Public Property ShowCounts As Boolean?

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