ColWidth

Returns or sets the width of the specified column in twips. Not available at design time.

Syntax

object.ColWidth( number ) [= value ]

The ColWidth property syntax has these parts:

Part Description
object An object expression that evaluates to an object.
number Long. The number of the column in the Grid control, or –1 to set all columns at once.
value A numeric expression specifying the width of the specified column in twips.

Remarks

You can use this property to set the width of any column at run time. You can set ColWidth to zero to create invisible columns, or to –1 to reset the column width to its default value, which depends on the size of the current font.