Skip to main content
A newer version of this page is available. .

GridView.UpdateGroupSummary() Method

Updates group summaries.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public void UpdateGroupSummary()

Remarks

Group summary values are automatically updated when changing cell values. There may be cases, however, when summary values do not only depend on the data displayed by the View. This may occur, for instance, when calculating summary values manually using the GridView.CustomSummaryCalculate event. In this case, you need to update group summaries manually when changing external data that affects summary values. Call the UpdateGroupSummary method for this purpose.

The UpdateGroupSummary method iterates through all groups within the current View and recalculates summary values for each group. Note that when a View contains a large number of records calling the UpdateGroupSummary method may cause a significant performance impact.

Note

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the UpdateGroupSummary member must not be invoked for these Views. The UpdateGroupSummary member can only be used with real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

See Also