ComponentOne True DBGrid Pro 8
ColResize Event

 

ColResize Event

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 grid to be repainted even if the Cancel argument is True.

See Also

TDBGrid Control

TDBDropDown Control

 

 


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

Product Support Forum  |  Documentation Feedback