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 ?
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 ?