Results 1 to 2 of 2

Thread: MSFlexGrid

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Location
    London, England
    Posts
    213

    Post

    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 ?

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width