GridColor Property

Specifies the color of the grid lines in the Grid Control

Syntax

object.GridColor [= OLE_COLOR]

Parameters

The GridColor property syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

OLE COLOR

The value of the color you select from the displayed color palette; for example: &H0000FF00&

Remarks

To set:

  • To set the background color for cells that display query data, use the BackColor property.
  • The background color of the column headings and the column for the current row pointer, use the BackColorFixed property.
  • To set the background color of the portion of the control not occupied by the grid, use the BackColorBackGround property.
  • To set the color of the cell text, use the ForeColor property.
  • To set the color of the column headings, use the ForeColorFixed property.

See Also