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

GridCustomSummaryEventArgs.SummaryStage Property

Specifies a calculation stage.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public GridCustomSummaryStage SummaryStage { get; }

Property Value

Type Description
GridCustomSummaryStage

A GridCustomSummaryStage enumeration value.

Available values:

Name Description
Start

The start stage of the summary calculation.

Calculate

The calculation stage of the summary.

Finalize

The final stage of the summary calculation.

Remarks

The summary calculation consists of three stages:

  • Initialization

    The CustomSummary event fires once at this stage. The event’s SummaryStage property value is Start. Use this stage to initialize a summary value (for example, reset internal counters).

  • Calculation

    The CustomSummary event fires for each data row in a grid or in a group. The event’s SummaryStage property value is Calculate. Use this stage to calculate a summary value.

    You can set the TotalValueReady property to true at the Initialization stage to skip the Calculation stage and calculate a custom summary at the Initialization or Finalization stage.

  • Finalization

    The CustomSummary event fires once at this stage. The event’s SummaryStage property value is Finalize. Use this stage to assign the calculated summary value to the TotalValue property.

Refer to the DxGridSummaryItem and GridCustomSummaryEventArgs class descriptions for more information and examples.

See Also