ForeColor (Grid)

This property returns and sets the color of all non-fixed text in a Grid control.

Syntax

object.ForeColor [= color]

Parameters

object
Object expression that evaluates to a Grid control.
color
Value or constant that determines the color used to paint text in the scrollable areas of the Grid control.

Remarks

Use the ForeColor property to set the text color of all cells. To set the text color of individual cells, use the CellForeColor property. Use the ForeColorSel property to set the highlight text color of all cells that are selected. To enable a cell with a different CellForeColor to use the ForeColor color, set the cell's CellForeColor property to 1.