Results 1 to 5 of 5

Thread: Flexgrid - colspan?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Flexgrid - colspan?

    I am looping through a recordset populating a flexgrid with 7 columns.

    Every now and then I want to write a heading that spans the 7 columns.
    Is this possible?

    I have tried saying MSFlexGrid1.cols = 0 ... as I write the heading and MSFlexGrid1.cols = 7 after I have written the heading but it does not work.

    Thanks for any input.

  2. #2

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

    Re: Flexgrid - colspan?

    @RB: I don't think that thread has anything about merging cells

    @webskater: try something like this:
    VB Code:
    1. Private Sub Command1_Click()
    2.     With MSFlexGrid1
    3.         .Redraw = False
    4.         .FillStyle = flexFillRepeat
    5.         .MergeCells = flexMergeFree
    6.         .MergeRow(0) = True
    7.         .Row = 0
    8.         .Col = 1
    9.         .ColSel = 7
    10.         .CellAlignment = flexAlignCenterCenter
    11.         .Text = "Header"
    12.         .FillStyle = flexFillSingle
    13.         .Redraw = True
    14.     End With
    15. End Sub

  4. #4

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    589

    Re: Flexgrid - colspan?

    Thanks for your replies - I'll give it a go.

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