Results 1 to 3 of 3

Thread: mshflexgrid column size

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    30
    does anyone know how to set the column size in the flex grid control.

    I want to preset the size of the columns so the user does not have to resize everytime they go to this form

  2. #2
    New Member
    Join Date
    Mar 2001
    Location
    UK
    Posts
    10

    Thumbs up

    BBYGolfer,

    You need to set the Grid AllowUserSizing to 0(None) and then hard code the following Grid properties once the Grid has been populated:-

    ColWidth(Index) FlexGrid properties;

    Index is the colum you want to set the width for, if u need to set all of columns widths, do soemthing like this

    For i = 0 To FlexGrid1.Cols
    FlexGrid1.ColWidth(i) = YourConstantSetWidth
    Next i

    FlexGrid.ColWidth(index) = YourConstantSetWidth

    Hope this helps

    Kieran

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    30

    Thanks

    Thanks,

    Thats what I was looking for

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