-
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 :confused:
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).]
-
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
[email protected]
[email protected]
ICQ#: 51055819
[This message has been edited by Serge (edited 02-04-2000).]