Skip to main content

GridSummaryItem.SummaryValue Property

Gets the current total summary item’s value. This value may differ from the actual View data if the GridOptionsBehavior.AutoUpdateTotalSummary setting is disabled. Call the GridView.UpdateTotalSummary method to forcibly recalculate summaries.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

[Browsable(false)]
public virtual object SummaryValue { get; }

Property Value

Type Description
Object

A Object representing the total summary value.

Remarks

This property is in effect for total summary items only. To obtain group summary values, use the View’s GridView.GetGroupSummaryValues method. This method requires a group row handle as the parameter, since group summaries are calculated for each group.

Please refer to the Working with Summaries in Code. Custom Summaries topic for additional information on obtaining summary values and display texts.

Note

In master detail mode, when a master row is expanded the Data Grid creates a copy of a View assigned assigned to the detail Data Grid level (pattern View) and uses this copy to display detail data. Pattern Views only store settings, and they are never connected to data. To access detail view summaries, use columns and summaries of the pattern View copies (clone Views). To access them, use methods described in this help topic: Master-Detail Relationships.

See Also