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

TdxTreeViewCustomOptionsBehavior.SortType Property

Specifies the criteria by which the Tree View sorts its nodes after a node’s caption and associated data pointer changes.

#Declaration

Delphi
property SortType: TSortType read; write; default stNone;

#Property Value

Type Default Description
TSortType stNone

The node sort criteria.

#Remarks

Options include:

Value Description
stNone The control sorts no tree nodes.
stText The control sorts nodes by their Caption property.
stData The control sorts tree nodes by their Data property. Note that you should handle the control’s OnCompare event to compare tree nodes by their Data property. Otherwise, this option is identical to stNone.
stBoth The control sorts nodes by their Caption and Data properties. The built-in comparison routine ignores Data property values. Handle the control’s OnCompare event to sort nodes against these values.

The SortType property’s default value is stNone.

See Also