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

Gets a collection of the statistical functions whose results can be used by various elements throughout a grid. This feature is available only in the Professional Edition

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property StatFunctions As ObservableCollection(Of StatFunction)
C# 
public ObservableCollection<StatFunction> StatFunctions {get;}

Return Value

A StatFunctionCollection that contains a collection of statistical functions whose results can be used by various elements throughout a grid.

Remarks

Each statistical function must have a unique ResultPropertyName, and becomes immutable once it has been added to the list. Only the statistical functions that are added to the StatFunctions collection of a DataGridCollectionView or DataGridCollectionViewSource can be used.

The values used to calculate the results of a statistical function are retrieved from its statistical context. For example, if a StatRow is contained in a group's footers, its statistical context will be the group, and the results of any statistical functions displayed in the row will be calculated according to the values of the data items in the group. If the row is contained in the footers of a grid, then its statistical context is provided by a grid (through its StatContext property) and all the data items will be used to calculate the results.

Notes

The results of statistical functions are only calculated when needed; therefore, regardless of the number of statistical functions that are added to the StatFunctions collection, performance will not be affected.

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also