SummaryItemBase.SummaryType Property
Gets or sets the aggregate function type. This is a dependency property.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
[DP(SummaryItemType.None, Handler = "OnSummaryChanged")]
public SummaryItemType SummaryType { get; set; }
#Property Value
Type | Description |
---|---|
Summary |
The aggregate function type. |
Available values:
Name | Description |
---|---|
Sum | The sum of all values in a column. |
Min | The minimum value in a column. |
Max | The maximum value in a column. |
Count | The record count. |
Average | The average value of a column. |
Custom | Specifies whether calculations should be performed manually using a specially designed event. |
None | Disables summary value calculation. |
#Remarks
There are five predefined aggregate functions: Sum, Min, Max, Average, and Count. To implement your own aggregate function, set the SummaryType property to SummaryItemType.Custom and handle the GridControl.CustomSummary event.