GridLineColor Property

Applies To   See Also

Specifies the color of the lines separating cells in a Grid control. Available at design time; read/write at run time.

Syntax

Grid.GridLineColor[ = nColor]

Grid.GridLineColor = RGB(nRedValue, nGreenValue, nBlueValue)

Settings

nColor

Specifies a single number to represent the color. By default, GridLineColor is set to 0 (Black).

nRedValue, nGreenValue, nBlueValue

Specifies three separate color intensities that compose the Grid's line color; must be used with the RGB( ) function to consolidate the three color components into one number, which is what the GridLineColor property is.

Note   the Properties window, you can double-click any of the color properties to display the Color dialog box. You can choose or define colors from this dialog box. The red, green, and blue intensities that correspond to the color you choose become the settings for these properties after you close the Color dialog box.