Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

Column Reordering

SftBox/OCX can be enabled to allow users of the control to reorder columns by dragging a column and dropping it at the new position in the control (see Headers.Reorderable). The application programmer can define certain columns that must remain in their current position (see Header.KeepPosition). Columns that must remain in their current position cannot be moved.

As a user reorders columns, this is completely transparent to the application. An application still references cells by the "real" column number, which is the original column number that the cell had before columns were reordered by the user. While columns appear in a new order after dragging a column to a new position, the application references columns and cells by their real column number which never changes.

A user can drag a column by clicking the left mouse button on a column header and, without releasing the mouse button, move the cursor to a new location. A vertical bar indicates the location where the column will be inserted. Once the correct position is reached, the user releases the mouse button. An application receives the ColumnsReordered event after the column positions have been changed.

While column reordering is in progress, the user can abort it by pressing the Escape key.

Column reordering can take place while the drop down portion of the combo box is visible or hidden.

The Columns.Move method can be used by an application to reorder columns.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.