Cols, Rows Properties (ModHFGrid) Example

The following example places the word "Here" into the current cell, changes the active cell to the third cell in the third row, and then places "There" into that cell. To run the program, press F5, and then click your ModHFGrid.

Private Sub Form_Load ()
   ModHFGrid1.Rows = 8
   ModHFGrid1.Cols = 5
End Sub

Private Sub ModHFGrid1_Click ()
   ' Put text in current cell.
   ModHFGrid1.Text = "Here"
    ' Put text in third row, third column.
   ModHFGrid1.Col = 2
   ModHFGrid1.Row = 2
   ModHFGrid1.Text = "There"
End Sub