[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.OnCompareCells

Event handler signalled to compare the content in grid cells.

Declaration

Source position: grids.pas line 1278

protected property TCustomGrid.OnCompareCells : TOnCompareCells
  read FOnCompareCells
  write FOnCompareCells;

Description

OnCompareCells is a TOnCompareCells property with the event handler signalled to compare two cell values in the grid control. OnCompareCells is signalled (when assigned) by the DoCompareCells method, and occurs when column or row values are examined in the Sort method. The Result parameter contains the relative sort order for the compared cell values.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.