Back to Devexpress

CustomSummaryEventArgs.SummaryProcess Property

corelibraries-devexpress-dot-data-dot-customsummaryeventargs-92ff3082.md

latest3.7 KB
Original Source

CustomSummaryEventArgs.SummaryProcess Property

Gets a value indicating calculation stage.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public CustomSummaryProcess SummaryProcess { get; }
vb
Public ReadOnly Property SummaryProcess As CustomSummaryProcess

Property Value

TypeDescription
CustomSummaryProcess

A CustomSummaryProcess enumeration value indicating calculation stage.

|

Available values:

NameDescription
Start

Indicates that the process of custom summary calculation is about to be started.

| | Calculate |

Indicates that custom summary calculation is in progress. This means the event is raised for a specific data row containing the field value used to calculate the processed custom summary.

| | Finalize |

Indicates that the process of custom summary calculation is finished.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the SummaryProcess property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-customize-footer-menu-calculate-custom-totals/CS/Form1.cs#L78

csharp
{
    if (e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Start)
        validRowCount = 0;

wpf-data-grid-summarize-empty-cells/CS/CustomSummary_EmptyCells_CodeBehind/MainWindow.xaml.cs#L36

csharp
return;
if(e.SummaryProcess == CustomSummaryProcess.Start) {
    e.TotalValue = 0;

winforms-grid-customize-footer-menu-calculate-custom-totals/VB/Form1.vb#L68

vb
If Equals("Count", item.Tag) Then
    If e.SummaryProcess = DevExpress.Data.CustomSummaryProcess.Start Then validRowCount = 0
    If e.SummaryProcess = DevExpress.Data.CustomSummaryProcess.Calculate Then

wpf-data-grid-summarize-empty-cells/VB/CustomSummary_EmptyCells_CodeBehind/MainWindow.xaml.vb#L31

vb
If Not Equals(CType(e.Item, GridSummaryItem).FieldName, "Number") Then Return
If e.SummaryProcess = CustomSummaryProcess.Start Then
    e.TotalValue = 0

See Also

CustomSummaryEventArgs Class

CustomSummaryEventArgs Members

DevExpress.Data Namespace