datagrid Spaltenbreite anpassen

object.ColWidth( number ) [= value ]

Syntax:

object.ColWidth( number ) [= value ]

"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.
 

Neue Beiträge

Zurück