Sign in Join
FPDoc Onlineexperiment

TCustomGrid.SortOrder property

Member of TCustomGridpublicIn unit Grids

Controls the order used for the sort column (ascending or descending).

Declaration

pascal
property SortOrder: TSortOrder read FSortOrder write FSortOrder;

Description

SortOrder is a TSortOrder property which indicates the sort order used for the column specified in SortColumn. It is used in the DoCompareCells method to determine the order for values during the comparison.

SortOrder is used in the HeaderClick method to set or invert the ordering when the column header is clicked. It is also used to determine the image displayed in the column heading for the sort column.

The default value for the property is soAscending.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.