Results 1 to 2 of 2

Thread: MSFlexGrid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Location
    Belgium
    Posts
    98

    Post

    Hi, I'm having trouble adding "items" in a MSFlexGrid control. I need to add a new row at the top of my MSFlexGrid control.
    I looked at the help files but it does not work. Who can help me ??

    R@emdonck

    MyCode:
    Private Sub CommandButton1_Click()
    With Me.MSFlexGrid1
    .FillStyle = flexFillRepeat
    '.AddItem (item as String,[index])
    .AddItem ("HELP", 0) '<-- this doesn't work !!!
    .CellBackColor = &HFF00&
    End With
    End Sub

    [This message has been edited by R@emdonck (edited 02-04-2000).]

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    It happens because you're trying to add an item to a Fixed row (which is a header).

    Try it like this:
    MSFlexGrid1.AddItem "Hello", 1

    ------------------

    Serge

    Senior Programmer Analyst
    sdymkov@microage.com
    Access8484@aol.com
    ICQ#: 51055819

    [This message has been edited by Serge (edited 02-04-2000).]

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