Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxPivotGridGroupItem.Compare(Variant) Method

Compares the Value and the AValue.

#Declaration

Delphi
function Compare(const AValue: Variant): Integer; overload;

#Parameters

Name Type
AValue Variant

#Returns

Type
Integer

#Remarks

When called, the Compare method fires the TcxCustomPivotGrid.OnCompare event allowing developers to provide another comparison algorithm (if required). If the event handler is not implemented, then the default comparison is performed. By default, the Compare method is used for sorting the field values in ascending order.

Depending upon the result of collation, the Compare method returns one of the following values:

Value Description
1 Value is greater than AValue
0 Value and AValue are equal
-1 Value is less than AValue

Note

The Compare method is called only in standard data binding modes. In OLAP mode, field values are sorted as specified by the dimension SortMode property settings.

See Also