[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Collapse]Windows 10 App Controls
 [Expand]Getting Started
 [Expand]Themes and Color Schemes
  Get More Help
 [Collapse]API Reference
    ColumnSortOrder Enumeration
   [Collapse]CustomSummaryEventArgs Class
     CustomSummaryEventArgs Members
    [Expand]CustomSummaryEventArgs Constructor
    [Expand]CustomSummaryEventArgs Properties
    [Expand]CustomSummaryEventArgs Methods
    CustomSummaryEventHandler Delegate
   [Expand]CustomSummaryExistEventArgs Class
    CustomSummaryExistEventHandler Delegate
    CustomSummaryProcess Enumeration
    SummaryItemType Enumeration
    UnboundColumnType Enumeration
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

CustomSummaryEventArgs Class

Provides data for the GridControl.CustomSummary event.


Expanded Syntax

Expanded Remarks

The GridControl.CustomSummary event enables you to calculate summary values manually. This event is raised for each data row involved in the calculations, it also fires before and after calculations allowing you to perform any initialization and finalization required. The CustomSummaryEventArgs class introduces the SummaryProcess property that identifies whether initialization, finalization or total summary value calculation should be performed.

When calculating, read the FieldValue property value to obtain the currently processed field value. If you need the values of other fields, use the RowHandle property. It enables you to identify the current row and, thus, obtain its values. The total summary value should be accumulated in the TotalValue property.

If calculating a group summary value, you may need the GroupLevel and GroupRowHandle properties to identify the currently processed group. You can determine whether a group summary will be calculated using the IsGroupSummary property value.

Use the Item property to access the summary item that provides the settings for the summary calculation.

Expanded Inheritance Hierarchy


Expanded See Also

Is this topic helpful?​​​​​​​