OnSortChange

Class: TEgDBGridEx

property OnSortChange: TNotifyEvent;

Fired after a column title click changes SortSelectedField and/or SortDirection - not fired if the click landed on a column that cannot be sorted, or re-selected the same field and direction it already had. TEgDBGridEx only tracks and displays the sort state; use this event to actually reorder the dataset (for example, by assigning IndexFieldNames or re-executing a query with a new ORDER BY).

See Also

(C) 2026 Easygate, Lda