GridLines, GridLinesBand, GridLinesFixed, GridLinesHeader, GridLinesIndent, GridLinesUnpopulated Properties (MSHFlexGrid)

       

Returns or sets a value that determines whether lines are drawn between cells, bands, headers, indents, or unpopulated areas. These properties also determine the type of lines that are drawn in the MSHFlexGrid.

Note   If using the MSFlexGrid, only the GridLines and GridLinesFixed properties are available.

Syntax

object.GridLines [= value]
object.GridLinesBand [= value]
object.GridLinesFixed [= value]
object.GridLinesHeader [= value]
object.GridLinesIndent [= value]
object.GridLinesUnpopulated [= value]

Syntax for the GridLines, GridLinesBand, GridLinesFixed, GridLinesHeader, GridLinesIndent, and GridLinesUnpopulated properties has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value An integer or constant that specifies the type of lines drawn, as described in Settings.

Settings

The settings for value are:

Constant Value Description
flexGridNone 0 There are no lines between cells. In the MSFlexGrid, this is the default for GridLines.
flexGridFlat 1 The line style between cells is set to normal, flat, lines. In the MSHFlexGrid, this is the default for GridLines.
flexGridInset 2 The line style between cells is set to inset lines. In the MSFlexGrid, this is the default for GridLinesFixed.
flexGridRaised 3 The line style between cells is set to raised lines. In the MSHFlexGrid, this is the default for GridLinesFixed.

Remarks

When the GridLines property is set to 1 (Lines), the color of the lines is determined by the GridColor property.

Raised and inset gridlines are always black and white.