SortFields

Class: TEgDBGridEx

property SortFields: TStrings;

Controls which fields can be sorted by clicking their column title, and in which direction(s). Each line is either a bare field name (enables ascending sort only for that field) or a FieldName=Directions pair, where Directions is any combination of A (ascending) and D (descending), case-insensitive - for example Name=AD allows both directions on Name, while Name=D allows descending only. A line using * as the field name applies to any field not otherwise listed. An empty list (the default) means no field can be sorted by clicking its title.

Only tracks and displays which field/direction is active - it does not resort the dataset itself; do that in OnSortChange.

See Also

(C) 2026 Easygate, Lda