GridLines Property

Returns or sets the type of lines to be drawn between non-fixed cells.

Syntax

[form!]VSFlexGrid.GridLines[ = GridStyleSettings ]

Remarks

The GridLines and GridColor properties determine the appearance of the grid lines displayed in the scrollable area of the grid. GridLinesFixed and GridColorFixed determine the appearance of the grid lines displayed in the fixed area of the grid.

The settings for the GridLines property are described below:

 

Constant

Value

Description

flexGridNone

0

Do not draw grid lines between cells.

flexGridFlat

1

Draw flat lines with color and width determined by the GridColor and GridLineWidth properties.

flexGridInset

2

Draw inset lines between cells.

flexGridRaised

3

Draw raised lines between cells.

flexGridFlatHorz

4

Draw flat lines between rows, no lines between columns.

flexGridInsetHorz

5

Draw inset lines between rows, no lines between columns.

flexGridRaisedHorz

6

Draw raised lines between rows, no lines between columns.

flexGridSkipHorz

7

Draw an inset effect around every other row.

flexGridFlatVert

8

Draw flat lines between columns, no lines between rows.

flexGridInsetVert

9

Draw inset lines between columns, no lines between rows.

flexGridRaisedVert

10

Draw raised lines between columns, no lines between rows.

flexGridSkipVert

11

Draw an inset effect around every other column.

flexGridExplorer

12

Draw button-like frames around each cell.

flexGridExcel

13

Draw button-like frames around each cell, highlighting the headings for the current selection.  This setting should only be applied to the GridLinesFixed property.

flexGridDataGrid

14

Draw button-like frames around each cell and show an arrow glyph to indicate the row that contains the cursor.  This setting should only be applied to the GridLinesFixed property.

 

The GridColor property is ignored when GridLines is set to one of the 3D styles. Raised and inset grid lines are always drawn using the system-defined colors for shades and highlights.

Data Type

GridStyleSettings (Enumeration)

Default Value

flexGridFlat (1)

See Also

VSFlexGrid Control