DefaultCalculateDistinctValues Property
See Also 
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridCollectionViewSource Class : DefaultCalculateDistinctValues Property

Get or sets the default value of the CalculateDistinctValues property when a DataGridItemProperty has not explicitly set its value. This feature is available only in the Professional Edition

Syntax

Visual Basic (Declaration) 
Public Property DefaultCalculateDistinctValues As Boolean
C# 
public bool DefaultCalculateDistinctValues {get; set;}

Return Value

true if distinct values are to be calculated; false otherwise. By default (if automatic filtering is enabled), true.

Remarks

If a column does not need to support automatic filtering, it is recommended to set its corresponding DataGridItemProperty's CalculateDistinctValues to false or set the DataGridCollectionViewSource or DataGridDetailDescription's DefaultCalculateDistinctValues properties to false and only set CalculateDistinctValues to true for the item properties that will support auto-filtering

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also