Hi,
Perhaps some extra info about the (correct) code below.
If you have 3 cols then the first one has zero as number. So if you want to
resize all the cols to the same size:
with grdGrid1
for t=0 to .cols ' .cols is the actual number of cols in the grid
.colwidth(t)=450 ' or .colwidth(t) = arrWidth(t) if you have widths
in an aray
next t
end with
Master Dev
"Gérard Leclercq" wrote:
> Plan2.G is the Grid
>
> Plan2.G.FixedCols = 1
> Plan2.G.Rows = 3
> Plan2.G.FixedRows = 2
>
> Plan2.G.ColWidth(0) = 1000
>
> Plan2.G.RowHeight(0) = 420
> Plan2.G.MergeRow(0) = True
> Plan2.G.RowHeight(1) = 500
> Plan2.G.MergeRow(1) = True
>
>
>
> > newbie - how to resize column MSFlexGrid
> >
> >
> > I do not see in properties, maybe I am blind, how to change column width.
> > I
> > would like to set it to just resize automatically to widest field of the
> > column, of corse.
> > can I, may I!!!???
> >
> > thanks
> > --
> > Adam S
>
>
> >> Stay informed about: newbie - how to resize column MSFlexGrid