Back to Devexpress

Sorting

windowsforms-1004-controls-and-libraries-tree-list-end-user-capabilities-sorting.md

latest1.2 KB
Original Source

Sorting

  • Apr 01, 2018

The following operations can be performed by end-users to apply or cancel sorting by column values.

ActionEffect
Clicking a column headerToggles the column’s sort order. The previous sorting is removed.
Clicking a column header while holding the SHIFT key pressedToggles the column’s sort order. The previous sorting is preserved.
Clicking a column header while holding the CTRL key pressedRemoves sorting by this column. The previous sorting is preserved.
Selecting the “ Sort Ascending “ or “ Sort Descending “ items in the column header’s context menuApplies the corresponding sort order to the column. The previous sorting is preserved.

Notes :

  • The data can be sorted by columns whose TreeListOptionsColumn.AllowSort option is active.
  • When clicking an unsorted column’s header, column values are sorted in ascending order.

See Also

Sorting

Sorting via Code