PDA

Click to See Complete Forum and Search --> : MSFlexGrid


nmretd
Jan 12th, 2000, 08:10 PM
I am using the following code to fix the width of columns and heights of the rows in my Grid.

Dim i As Integer
Dim j As Integer

With MSFlexGrid1

For i = 0 To .Cols - 1
.ColWidth(i) = 1 * 500
Next i

For j = 0 To .Rows - 1
.RowHeight(j) = 1 * 100
Next j

End With

When I run my program the size of the cells is fine but when data is added to the cells (via a combo box selection method) the row height of every cell (except cell 0) resize themselves.

How can I keep the row height a constant size ?

netSurfer
Jan 12th, 2000, 08:35 PM
Well, quick fix, do the resizing after you load the grid. I'ld put it in a function and then call it. I've never had a problem with that though, it's never resized unless I told it.
You may have a property setting marked to do that. I can't remember all the properties that are available for the FlexGrid but that might be one.