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


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridDetailDescription 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 DataGridDetailDescription

Dim value As Boolean

 

instance.DefaultCalculateDistinctValues = value

 

value = instance.DefaultCalculateDistinctValues
public bool DefaultCalculateDistinctValues {get; set;}
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

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

DataGridDetailDescription Class
DataGridDetailDescription Members