Reordering Bands and Columns
- 2 minutes to read
The following operations can be performed by end-users to rearrange bands:
Action | Effect |
---|---|
Dragging a band header and dropping it at a new position within the band header panel. | Moves the band header to the new position. |
Double-clicking a band header located within the customization form. | Restores the band header within the band header panel at the position specified by the band’s Position property. |
Note
Use the TreeList control’s OptionsCustomizing.BandMoving property to prohibit end-users from moving bands. Use a band’s Options.Moving property to prohibit moving this band. To prohibit end-users from nesting bands, set the TreeList control’s OptionsCustomizing.NestedBands property to False.
To respond to end-user changes made to the position of bands, handle the TreeList control’s OnBandPosChanged event.
The following operations can be performed by end-users to rearrange columns:
Action | Effect |
---|---|
Dragging a column header and dropping it at a new position within the column header panel. | Moves the column header to the new position. |
Double-clicking a column header located within the customization form. | Restores the column header within the column header panel at the position specified by the column’s Position property. |
Note
Use the TreeList control’s OptionsCustomizing.ColumnMoving property to prohibit end-users from moving columns. Use a column’s Options.Moving property to prohibit moving this column. To prohibit end-users from stacking columns, set the TreeList control’s OptionsCustomizing.StackedColumns property to False.
To respond to end-user changes made to the position of columns, handle the TreeList control’s OnColumnPosChanged event.