Results 1 to 3 of 3

Thread: FlexGrid Vertical Text alignment

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    FlexGrid Vertical Text alignment

    After a good deal of mucking around, I've managed to get text to wordwrap in a FlexGrid cell and set the rowheight of the cell to display it all.

    Now the cell next door - which contains a single word - is aligning the text vertically in the middle of the cell. I'd like it to align to the top.

    I've had a look through the many properties you can set but can't see if any of them will allow you to specify that text will align vertically to the top of a cell. Can you do this?

    Thanks for any help.

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: FlexGrid Vertical Text alignment

    VB Code:
    1. MSFlexGrid1.ColAlignment([i]col[/i]) = flexAlignCenterTop
    2.  
    3. ' or
    4.  
    5. MSFlexGrid1.Col = [i]col[/i]
    6. MSFlexGrid1.Row = [i]row[/i]
    7. MSFlexGrid1.CellAlignment = flexAlignCenterTop
    depending on how you want other cells in that column to behave.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Re: FlexGrid Vertical Text alignment

    Thanks very much.

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