Back to Devexpress

GridCustomDataSourceSummaryInfo.SummaryType Property

blazor-devexpress-dot-blazor-dot-gridcustomdatasourcesummaryinfo.md

latest2.3 KB
Original Source

GridCustomDataSourceSummaryInfo.SummaryType Property

Specifies the aggregation function of a summary item.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public GridSummaryItemType SummaryType { get; }

Property Value

TypeDescription
GridSummaryItemType

A GridSummaryItemType value that specifies the aggregation function of a summary item.

|

Available values:

NameDescription
Sum

Calculates the sum of all values in a column.

| | Min |

Calculates the minimum value of all values in a column.

| | Max |

Calculates the maximum value of all values in a column.

| | Count |

Calculates the number of values in a column.

| | Avg |

Calculates the average of all values in a column.

| | Custom |

Uses a custom algorithm to calculate a summary value.

| | None |

Does not calculates a summary value.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SummaryType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

blazor-grid-custom-datasource-with-ef-core/CS/CustomDataSource/Services/OrdersDataSource.cs#L198

csharp
switch (summaryInfo.SummaryType) {
    case GridSummaryItemType.Avg:

See Also

GridCustomDataSourceSummaryInfo Class

GridCustomDataSourceSummaryInfo Members

DevExpress.Blazor Namespace