Skip to main content
Table of Contents

TTMSFNCDataGridDataCustomCompareEvent Event Type

Compares two cell values of a column whose sort format is custom.

API unit family: TMSFNCDataGridData

Remarks

The event is used when the effective sort format of the column is gsfCustom (see TTMSFNCDataGridDataSortOptions.Format) and a compare callback did not handle the pair. Return the ascending order; the result is negated for a descending sort. When no handler is assigned, all values compare as equal.

Parameters

Name Description
Sender Data object requesting the comparison.
AColumn Zero-based index of the column being sorted.
ARow1 Zero-based row index of the first value.
ARow2 Zero-based row index of the second value.
AData1 Cell value from the first row.
AData2 Cell value from the second row.
ALevel Zero-based grouping level whose rows are sorted, or 0 for a sort outside grouping.

Returns

A negative value when the first value sorts before the second, 0 when they are equal, or a positive value otherwise.