CustomSummaryEventArgs.SummaryProcess Property
Gets a value indicating the data summary calculation stage.
Namespace: DevExpress.Mobile.DataGrid
Assembly: DevExpress.Mobile.Grid.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
CustomSummaryProcess | A CustomSummaryProcess enumeration value indicating the calculation stage. |
Available values:
Name | Description |
---|---|
Start | Indicates that the process of custom summary calculation is about to start. |
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. |
Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.
By default, the process of custom summary calculation consists of three stages.
- Initialization - the SummaryProcess property is set to CustomSummaryProcess.Start, and the GridControl.CalculateCustomSummary event is raised once.
- Calculation - The SummaryProcess property is set to CustomSummaryProcess.Calculate, and the GridControl.CalculateCustomSummary event occurs multiple times, once for each data row in the grid or group.
- Finalization - The SummaryProcess property is set to CustomSummaryProcess.Finalize, and the GridControl.CalculateCustomSummary event is raised once.
Example
This example shows how to use the GridControl.CalculateCustomSummary event to create a custom summary that counts the total number of data rows whose cells in the Shipped column (SwitchColumn) contain false.