Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomHeader.OnSectionChangingSortOrder Event

In This Article

Occurs before the sort order is changed.

#Declaration

Delphi
property OnSectionChangingSortOrder: TcxSectionChangingSortOrderEvent read; write;

#Remarks

The OnSectionChangedSortOrder event occurs before the user changes the sort order of the header control. A user can change the sorting order for a section by clicking it. Handle this event if you wish to reject the order change or need to do something before it changes. For example, you may wish to reject the currently applied sorting mode.

Parameter

Meaning

Sender

The header control, which fired the event.

Section

A section whose sort order has changed.

AOldSortOrder

Previous sort order. Can take the following values:

  • soNone - no sort order is applied;

  • soAscending - ascending sort order is enabled;

  • soDescending - descending sort order is enabled.

ANewSortOrder

New sort order applied. Can take the following values:

  • soNone - no sort order is applied;

  • soAscending - ascending sort order is enabled;

  • soDescending - descending sort order is enabled.

AllowChange

True if new sort order settings are accepted; False if you wish to revert to the previous sort order.

If you need to do something after the sort order has changed, see the OnSectionChangingSortOrder event.

See Also