Your search did not match any results.

Tree List - Column Reordering

DevExtreme DataGrid columns use the same display order as fields in the component's dataSource. You can specify a different display order with the columns[] array. To reorder a column at runtime, change the columns[].visibleIndex property.

Backend API

To allow users to reorder columns, set allowColumnReordering to true. To disable reordering operations for a specific column, assign false to its allowReordering property.

Users can reorder columns with mouse drag-and-drop operations or with keyboard shortcuts:

  • Ctrl/Cmd+Left Arrow
    Move the focused column to the left.
  • Ctrl/Cmd+Right Arrow
    Move the focused column to the right.

Reordering operations are also available in the component's context menu.

This demo illustrates fixed column behavior during user-initiated column reorder operations. Users can drag & drop columns within the following areas (but not between them):

  • Columns fixed to the left
  • Non-fixed columns
  • Columns fixed to the right

Sticky columns (fixed with the 'sticky' position) behave like non-fixed columns during reorder operations (even if they are in a state where they are attached to a border/fixed column). To see sticky columns in this demo, right-click a column to open the TreeList’s context menu. Choose "Set Fixed Position -> Sticky" to stick a given column.