Skip to main content

GridColumnSummary.SummaryValue Property

Gets the summary value.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public object SummaryValue { get; }

Property Value

Type Description
Object

A Object specifying the total summary value.

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

Use one of the following approaches to get a value of the total or group summary.

  • Obtain Total Summary Values

    Total summaries are specified by the GridColumnSummary objects added to the GridControl.TotalSummaries collection. Each total summary is a value calculated for the specified column and displayed under this column in the total summary panel. To obtain a total summary value, use the SummaryValue property of the corresponding GridColumnSummary object accessed from the GridControl.TotalSummaries collection.

  • Obtain Group Summary Values

    Group summaries are specified by the GridColumnSummary objects added to the GridControl.GroupSummaries collection. A group summary is calculated for each data group in the grid, and each group summary value is displayed in the corresponding group row. To obtain a group summary value calculated for the specified group, follow the steps below.

    1. Call the GridControl.GetGroupInfo method to access an object implementing the IGroupInfo interface and containing information on the specified group.
    2. Use the IGroupInfo.Summaries property to get the GridControl.GroupSummaries collection copy whose elements (GridColumnSummary objects) are summaries calculated for the specified data group.
    3. Access the required summary object from the IGroupInfo.Summaries collection and use the SummaryValue property to get the group summary value calculated for the current group.
See Also