TcxCustomDataSummaryItem.Kind Property
Specifies the summary calculation algorithm.
#Declaration
Delphi
property Kind: TcxSummaryKind read; write; default skNone;
#Property Value
Type | Default | Description |
---|---|---|
Tcx |
sk |
The active summary calculation algorithm. |
#Remarks
Use the Kind
property to switch between predefined summary calculation algorithms.
Tip
To implement a custom summary calculation algorithm, handle the On
#Available Options
This section lists all possible Kind
property values for group and footer summaries.
#All Summaries
- skNone
Default. The summary item does not calculate a summary for the source data item.
This option is useful if you need to define a custom summary value within the parent data controller‘s Summary.OnAfterSummary event handler.
#Group Summaries
- skSum
- Sums all record values in a group.
- skMin
- Identifies the lowest value among all record values in a group.
- skMax
- Identifies the highest value among all record values in a group.
- skCount
- Returns the number of records in a group.
- skAverage
- Calculates the average of all record values in a group.
#Footer Summaries
- skSum
- Sums all record values of the source data item.
- skMin
- Identifies the lowest value among all record values of the source data item.
- skMax
- Identifies the highest value among all record values of the source data item.
- skCount
- Returns the total number of records.
- skAverage
- Calculates the average of all record values in the source data item.
#Default Value
The Kind
property’s default value is skNone.
See Also