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

TCustomListView.SortType

Specifies the sorting mechanism used for the current SortColumn.

Declaration

Source position: comctrls.pp line 1585

protected property TCustomListView.SortType : TSortType
  read FSortType
  write SetSortType
  default stNone;

Description

SortType is a TSortType property which specifies the sort mechanism used for the items in the list view control.

The default value for the property is stNone, and indicates that sorting is not performed for the list items on the control. See TSortType for the values available for the property and their meanings.

Changing the value in SortType causes the Sort method to be called.

SortType is used in the ColClick method to determine if SortColumn and SortDirection are updated when a column header is clicked for the control. Values in SortType, SortColumn, and SortDirection are also passed to the widgetset class when its Handle is allocated or updated.

See also

TCustomListView.ColClick

  

Performs actions to handle a mouse click on a Report view column header.

TCustomListView.Sort

  

Sorts the values in Items using the SortType, SortColumn, and SortDirection for the control.

TCustomListView.SortColumn

  

Ordinal position for the column used to sort the list items, or -1 when not assigned.

TCustomListView.SortDirection

  

Sorting direction (order) for the current SortColumn.

TCustomListView.AutoSort

  

Controls automatic updates to the sort column and order indicator for the control.

TCustomListView.AutoSortIndicator

  

Indicates if the control automatically changes the column and/or order indicator when a column is clicked.

TCustomListView.AlphaSort

  

Sorts the first column for the list view control in ascending alphabetic order.


Version 3.2 Generated 2024-02-25 Home