ComponentOne List 8.0 for ActiveX
ColResize Event (TDBCombo)

 

TDBCombo Reference> TDBCombo Events> ColResize Event (TDBCombo)

ColResize Event (TDBCombo)

The ColResize event occurs after the user has finished resizing a column, but before columns to the right are repositioned.

Syntax

object_ColResize (ByVal ColIndex As Integer, Cancel As Integer)

Arguments

ColIndex is an integer that identifies the column that was resized.

Cancel is an integer that may be set to True to undo resizing.

Remarks

Your event procedure can accept the change, alter the degree of change, or cancel the change completely.

If you set the Cancel argument to True, the previous column width is restored and no repainting occurs. To alter the degree of change, set the Width property of the Column object specified by the ColIndex argument to the desired value.

It is not necessary to execute the Refresh method within this event procedure. Doing so causes the control to be repainted even if the Cancel argument is True.

Event applies to TDBList and TDBCombo controls.

See Also

TDBList and TDBCombo Controls

 

 


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

Product Support Forum  |  Documentation Feedback