ComponentOne List for WinForms
In This Topic
    Moving Columns
    In This Topic

    If the AllowColMove property is True, the user can move previously selected columns as a unit to a different location by pressing the mouse button within the header area of any selected column. The pointer will change to an arrow with a column header box on its tip, a small box at its lower right corner, and a position marker consisting of a red triangle will appear at the left edge of the column being pointed to and highlighted. The user specifies the desired location of the selected columns by dragging the column header, which changes positions as the mouse pointer crosses the columns.

    The user completes the operation by releasing the mouse button, which moves the selected columns immediately to the right of the position marker.

    If the user drags the marker to a position within the currently selected range, no movement occurs. Columns that are not selected cannot be moved interactively.

    When a move occurs, the index in the Columns Collection is adjusted for all affected columns.

    You can prevent interactive column movement from occurring at run time by setting Cancel to True in the ColMove event.