Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataGridView.GetGroupSummaryValue(Int32, GridColumnSummary) Method

Returns a summary value calculated against the specified group of rows.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

#Declaration

C#
public object GetGroupSummaryValue(
    int groupRowHandle,
    GridColumnSummary summaryItem
)

#Parameters

Name Type Description
groupRowHandle Int32

A negative integer starting with -1 that specifies a group row handle.

summaryItem GridColumnSummary

An object that specifies a group summary.

#Returns

Type Description
System.Object

An object that specifies a summary value.

#Remarks

The grid calculates a summary for each group and displays it within the group header (group row). Use the GetGroupSummaryValue method to obtain a summary value for a specific group.

Group Rows

GridColumnSummary objects specify a data field, aggregate function, and a format for the display of a summary. The DataGridView stores these objects in the GroupSummaries collection.

See Also