GridCustomSummaryEventArgs.SummaryStage Property
Specifies a calculation stage.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.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 CustomSummary event fires once at this stage before grid rows are processed. At this stage, you can initialize a summary value. |
Calculate | The CustomSummary event fires for each data row in a grid or in a group. At this stage, you can calculate a summary value. |
Finalize | The CustomSummary event fires once at this stage after grid rows are processed. At this stage, you can finalize 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 isStart
. 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’sSummaryStage
property value isCalculate
. 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 isFinalize
. 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.