GridLineColor Property
Specifies the color of the lines separating cells in a Grid control. Available at design time; read/write at run time. There are two versions of the syntax.
Grid.GridLineColor[ = nColor]
Grid.GridLineColor = RGB(nRedValue, nGreenValue, nBlueValue)
Return Value
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.
Remarks
Applies To: Grid Control