A DistinctValuesConstraint value representing the constraint applied to the DistinctValues when automatically filtering data items. By default, DistinctValuesConstraint.All.
Member
Description
All
No constraint is applied to the data items.
Filtered
Distinct values are constrained to the currently filtered list of values.
FilteredWithAllFilters
Distinct values are constrained to all filters currently applied to the grid (including filtering from a predicate and a FilterRow).
All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to enable automatic filtering, disabling it for the columns that will not support it and filtering the distinct values of the ShipCity column.