The ColMove event occurs when the user has finished moving the selected columns.
object_ColMove (ByVal Position As Integer, Cancel As Integer)
Arguments
Position is an integer that specifies the target location of the selected columns.
Cancel is an integer that may be set to True to prohibit movement.
Your event procedure can either accept the movement or cancel it altogether.
The Position argument ranges from 0, which denotes the left edge, to the total number of columns, which denotes the right edge.
To determine which columns are being moved, examine the SelStartCol and SelEndCol properties.
If you set the Cancel argument to True, no movement occurs. Selected columns always remain selected, regardless of the Cancel setting.
Note: This event is only fired when the user moves the selected columns to a new location.
Event applies to TDBList and TDBCombo controls.
See Also