[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Performs a comparison between the specified cells in the grid control.
Source position: grids.pas line 1772
protected function TCustomStringGrid.DoCompareCells( |
Acol: Integer; |
ARow: Integer; |
Bcol: Integer; |
BRow: Integer |
):Integer; override; |
Acol |
|
Column number for the first cell value in the comparison. |
ARow |
|
Row number for the first cell value in the comparison. |
Bcol |
|
Column number for the second cell value in the comparison. |
BRow |
|
Row number for the second cell value in the comparison. |
Relative sort order for the compared cell values.
DoCompareCells is an overridden method used to compare cell values in the Sort method. It calls the inherited method when the OnCompareCells event handler has been assigned. The return value from the event handler contains the relative sort order for the compared cells, and uses the following values:
When OnCompareCells is not assigned, the AnsiCompareText routine is called to perform the cell comparison and provide the return value for the method. When SortOrder is set to soDescending, the return value is negated.
|
Performs a comparison between the specified cells in the grid control. |
|
|
Event handler signalled to compare the content in grid cells. |
|
Version 3.2 | Generated 2024-02-25 | Home |