GridLines

This property returns and sets a value that determines what types of line should be drawn between cells.

Syntax

object.GridLines [= value]

Parameters

object
Object expression that evaluates to a Grid control.
value
Integer or constant that specifies the types of line drawn. The following table shows the settings for value.
Constant
Value
Description
flexGridNone 0 No lines. No lines between cells.
flexGridFlat 1 (Default). Lines. Sets line style between cells to normal lines.
flexGridInset 2 Inset lines. Sets line style between cells to inset lines.
flexGridRaised 3 Raised lines. Sets line style between cells to raised lines.

Remarks

When the GridLines property is set to 1 (Lines), the GridColor property determines the color of the lines. Raised and inset grid lines are always drawn in black and white.