The MSFlexGrid component has an AddItem method. For example: create a form with a MSFlexGrid and a command button. Put the below code in the buttons click event.
Private Sub Command1_Click()
Dim x As Integer
For x = 1 To 10
MSFlexGrid1.AddItem (x)
Next x
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.