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

TListColumn.SortIndicator

Specifies the sort indicator displayed for the column.

Declaration

Source position: comctrls.pp line 1250

published property TListColumn.SortIndicator : TSortIndicator
  read FSortIndicator
  write SetSortIndicator
  default siNone;

Description

SortIndicator is a TSortIndicator property which indicates the sort direction or order for the content displayed in the column. The default value for the property is siNone, and means a sort indicator is not displayed for the column.

Changing the value for the property causes the Changed method to be called to update the column in its Collection. The widgetset class for the list view control is notified of the changed value when its handle has been allocated.

SortIndicator is used in conjunction with the SortColumn, SortType, AutoSort, and AutoSortIndicator properties in TCustomListView. The visual sort indicator is displayed in the column heading when the list view uses vsReport in its ViewStyle property.

Assigning a value other than siNone to the property causes the image in ImageIndex to be removed from the column heading. Nota bene: This is the observed behavior for the Windows platform. Other platforms may vary.

See also

TSortIndicator

  

Represents the sort indicators available for a column in a list view control.

TCustomListView.SortColumn

  

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

TCustomListView.SortType

  

Specifies the sorting mechanism used 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.


Version 3.2 Generated 2024-02-25 Home