Xceed DataGrid for WPF v7.2 Documentation
DefaultCalculateDistinctValues Property (DataGridCollectionViewSourceBase)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridCollectionViewSourceBase Class : DefaultCalculateDistinctValues Property
Get or sets the default value of the CalculateDistinctValues property when a DataGridItemProperty has not explicitly set its value.
Syntax
'Declaration
 
Public Property DefaultCalculateDistinctValues As Boolean
'Usage
 
Dim instance As DataGridCollectionViewSourceBase
Dim value As Boolean
 
instance.DefaultCalculateDistinctValues = value
 
value = instance.DefaultCalculateDistinctValues
public bool DefaultCalculateDistinctValues {get; set;}

Property 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 tofalse 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

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataGridCollectionViewSourceBase Class
DataGridCollectionViewSourceBase Members