.NET MAUI DataGrid Aggregates

The DataGrid exposes an Aggregates API through the 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 utilize 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. However it is also used to display the Aggregates for the columns.

DataGrid Column Footer Aggregate

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

When Grouping is applied you can display the aggregate results for the group's data in the Group Footer. In order to visualize the footer the ShowGroupFooters property needs to be set 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. In order to show the Aggregates in the Header of the group the ShowGroupHeaderAggregates needs to be set to True.

DataGrid Group Header Aggregate

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

See Also

In this article
Not finding the help you need?