See Also Example
Applies To
Grid.
Description
Determines whether the lines between cells are visible.
Usage
[form.]grid.Gridlines[ = { True|False}]
Setting
The GridLines property settings are:
Setting Description
True (Default) Grid lines are visible.
False Grid lines are not visible.
Data Type
Integer (Boolean)
Help:
Cols, Rows Properties
Programmer's Guide:
Chapter 3, "Creating and Using Controls"
The example turns the grid lines on and off as you click the form. To try this example, create a new project, add GRID.VBX using the Add File command on the File menu, and then draw a grid. Copy the code into the Declarations section and press F5 to run the program.
Sub Form_Load ()
Grid1.Cols = 6 ' Set columns and rows.
Grid1.Rows = 7
End Sub
Sub Form_Click () ' Toggle grid lines on and off.
Grid1.GridLines = Not Grid1.GridLines
End Sub