RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDrawGrid.ColWidths Property

Indicates the width (in pixels) of all the columns in the grid.

Pascal
property ColWidths [Index: Longint]: Integer;
C++
__property int ColWidths[Longint Index];

Read ColWidths to determine the width of the cells in the column specified by the Index parameter. An index of 0 refers to the first column. Set ColWidths at runtime to change the width of an individual column.  

If the width of a column has not been set explicitly by resizing with the mouse, or by using the ColWidths property, its width is DefaultColWidth. 

Use the ColCount property to determine the number of entries in the ColWidths array. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!