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

TCustomListView.AutoSort

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

Declaration

Source position: comctrls.pp line 1569

protected property TCustomListView.AutoSort : Boolean
  read FAutoSort
  write FAutoSort
  default True;

Description

AutoSort is a Boolean property used to determine whether the sort column and order indicator are automatically updated when a Report view column header on the control is clicked. The default value for the property is True.

When enabled, the value in SortColumn is set to the position for the clicked column header. Use AutoSortIndicator to control whether the sort indicator is automatically updated for the Columns defined for the control.

AutoSort has no effect when SortType is set to stNone.

See also

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.SortDirection

  

Sorting direction (order) for the current SortColumn.

TCustomListView.AutoSortIndicator

  

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

TCustomListView.Columns

  

Collection with the column definitions for the list view control (size, alignment, image index, etc.).

TCustomListView.ColClick

  

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

TCustomListView.OnColumnClick

  

Event handler signalled when a column header for the control is clicked.

TListColumn.SortIndicator

  

Specifies the sort indicator displayed for the column.


Version 3.2 Generated 2024-02-25 Home