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
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.
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.