GridLines Property

See Also2I1TDWT              Example61AJ06S>Low

Applies To

Grid2VGT0PT.

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

IntegerDOKXHY (Boolean)


See Also

Help:

Cols, Rows Properties1WFQF0

 

Programmer's Guide:

Chapter 3, "Creating and Using Controls"


GridLines Property Example

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