Back to Devexpress

TcxCustomDataSummaryItem.Kind Property

vcl-cxcustomdata-dot-tcxcustomdatasummaryitem-dd755e4f.md

latest2.5 KB
Original Source

TcxCustomDataSummaryItem.Kind Property

Specifies the summary calculation algorithm.

Declaration

delphi
property Kind: TcxSummaryKind read; write; default skNone;

Property Value

TypeDefaultDescription
TcxSummaryKindskNone

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 OnSummary event of the parent summary item collection.

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

skSumSums all record values in a group.skMinIdentifies the lowest value among all record values in a group.skMaxIdentifies the highest value among all record values in a group.skCountReturns the number of records in a group.skAverageCalculates the average of all record values in a group.

Footer Summaries

skSumSums all record values of the source data item.skMinIdentifies the lowest value among all record values of the source data item.skMaxIdentifies the highest value among all record values of the source data item.skCountReturns the total number of records.skAverageCalculates the average of all record values in the source data item.

Default Value

The Kind property’s default value is skNone.

See Also

TcxCustomDataSummaryItem Class

TcxCustomDataSummaryItem Members

cxCustomData Unit