Back to Devexpress

TcxGridDBTableSummaryItem Class

vcl-cxgriddbtableview-36890d8b.md

latest3.2 KB
Original Source

TcxGridDBTableSummaryItem Class

A summary calculated using values of a tabular View’s data field.

Declaration

delphi
TcxGridDBTableSummaryItem = class(
    TcxDBDataSummaryItem,
    IInterface,
    IcxStoredObject,
    IcxGridSummaryItem
)

Remarks

The TcxGridDBTableSummaryItem class represents a single summary in a data-aware tabular View. Use the FieldName property to specify the dataset field against which the summary is calculated. The summary result will be displayed in the column defined by the Column object (which may be different from the field actually displayed in the column). If the FieldName property is not assigned, the summary will be evaluated against values displayed within the column. Use the VisibleForCustomization and DisplayText properties to control the visibility and specify the caption for the Group Row Popup Menu item associated with the summary.

The TcxGridDBTableSummaryItem is an element of the collection represented by the TcxDataSummaryItems class, which is the base class for TcxDataFooterSummaryItems and TcxDataGroupSummaryItems implementing footer summaries and group summaries, respectively.

To add a summary to a View, use the View’s DataController.Summary property.

See the Create Summaries topic for additional information on summaries usage.

Implements

IInterface

IcxStoredObject

IcxGridSummaryItem

Inheritance

TObject TPersistent TCollectionItem TcxCustomDataSummaryItem TcxDataSummaryItem TcxDBDataSummaryItem TcxGridDBTableSummaryItem

See Also

TcxDataFooterSummaryItems

TcxDataGroupSummaryItems

TcxDataSummary

TcxDataSummaryItems

TcxCustomDataController.Summary

TcxGridDBTableSummaryItem Members

cxGridDBTableView Unit