[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
  Prerequisites
 [Expand]Getting Started
 [Expand]Controls
 [Expand]Themes and Color Schemes
  Localization
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Core
  [Collapse]DevExpress.Data
    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]DevExpress.Data.Filtering
  [Expand]DevExpress.Mvvm
  [Expand]DevExpress.Mvvm.UI
  [Expand]DevExpress.UI.Xaml
  [Expand]DevExpress.UI.Xaml.Charts
  [Expand]DevExpress.UI.Xaml.Controls
  [Expand]DevExpress.UI.Xaml.Controls.Internal.Pdf
  [Expand]DevExpress.UI.Xaml.Editors
  [Expand]DevExpress.UI.Xaml.Editors.Native
  [Expand]DevExpress.UI.Xaml.Gauges
  [Expand]DevExpress.UI.Xaml.Grid
  [Expand]DevExpress.UI.Xaml.Grid.Native
  [Expand]DevExpress.UI.Xaml.Layout
  [Expand]DevExpress.UI.Xaml.Layout.Base
  [Expand]DevExpress.UI.Xaml.Layout.Internal
  [Expand]DevExpress.UI.Xaml.Layout.VisualElements
  [Expand]DevExpress.UI.Xaml.Map
  [Expand]DevExpress.UI.Xaml.Ribbon
  [Expand]DevExpress.Utils
  [Expand]DevExpress.XtraGrid
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[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.

Namespace:DevExpress.Data
Assembly:DevExpress.Core.v18.1.dll

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

System.Object
    System.EventArgs
       CustomSummaryEventArgs

Expanded See Also

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