.NET MAUI DataGrid Aggregates

The DataGrid exposes an Aggregates API through its DataGridColumn.AggregateDescriptors property where you can add PropertyAggregateDescriptors or DelegateAggregateDescriptors.

Telerik UI for .NET MAUI  image

The is part of Telerik UI for .NET MAUI, a To try it out sign up for a free 30-day trial.

The PropertyAggregateDescriptor enables you to use a set of available functions while the DelegateAggregateDescriptor allows you to implement a custom function through the IAggregateFunction interface.

The Telerik UI for .NET MAUI DataGrid Aggregates can be placed in the ColumnFooter as well as the GroupHeader and GroupFooter.

The ShowColumnFooters property is used to visualize the ColumnFooters of the DataGrid and is also used to display the Aggregates for the columns.

The Aggregates are displayed only if there is no FooterText set.

DataGrid Column Footer Aggregate

When grouping is applied to the DataGrid, you can display the aggregate results for the groups data in the group footer. To visualize the footer, set the ShowGroupFooters property to True. The group footer is divided into cells which are aligned with the respective columns and show the aggregate results for the particular column.

DataGrid Group Footer Aggregate

The aggregate results can also be visualized in the group header next to the title of the group. To show the Aggregates in the group header, set the ShowGroupHeaderAggregates to True.

DataGrid Group Header Aggregate

For an outline of all DataGrid features review the .NET MAUI DataGrid Overview article.

See Also

In this article