Datasnap.DBClient.TAggregate.GroupingLevel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property GroupingLevel: Integer read FGroupingLevel write SetGroupingLevel default 0;

C++

__property int GroupingLevel = {read=FGroupingLevel, write=SetGroupingLevel, default=0};

Properties

Type Visibility Source Unit Parent
property published
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TAggregate

Description

Specifies the set of records summarized by this aggregate.

Use GroupingLevel to indicate the groups of records over which this aggregate is calculated. When GroupingLevel is 0 (the default), the aggregate summarizes all the records in the client dataset. When GroupingLevel is greater than 0, the aggregate summarizes each group of records that has the same values on the first GroupingLevel fields of the index.

GroupingLevel can be any value from 0 to the number of fields in the index specified by IndexName.

See Also