ComponentOne List 8.0 for ActiveX
GroupColMove Event

 

True DBList Reference> TDBList Events> GroupColMove Event

GroupColMove Event

The GroupColMove event occurs before a selected column is moved to or from the grouping area.

Syntax

TDBList_GroupColMove (ByVal Position As Integer, ColIndex As Integer, Cancel As Integer)

Arguments

Position is an integer that specifies the target location of the selected columns.

ColIndexis an integer that identifies the column being moved. This is the absolute index.

Cancel is an integer that may be set to True to prohibit movement.

Remarks

Event applies to TDBList control (OLE DB only).

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. A position of -1 is used to indicate that a column is being moved from the grouping area back to the list.

To determine which column is being moved, use the Item method.

If you set the Cancel argument to True, no movement occurs. Selected columns always remain selected, regardless of the Cancel setting.

See Outlook-Style Grouping for more information.

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback