Help Center

GridColorHeaderproperty

Returns or sets the line color used between the header of the MSHFlexGrid.

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY GridColorHeader (BYVAL BandNumber AS LONG) AS OLE_COLOR
PROPERTY GridColorHeader (BYVAL BandNumber AS LONG, BYVAL clr AS OLE_COLOR)
PROPERTY GridColorHeader () AS OLE_COLOR
PROPERTY GridColorHeader (BYVAL clr AS OLE_COLOR)

Parameters

NameDescription
BandNumberA zero‑based index identifying the band whose background color is being retrieved or modified. If the band number is omited, band 0 is assumed.
clrAn OLE_COLOR value, such as a system color constant or an RGB value.

Description

Returns or sets the color of the gridlines specifically for the header area of a designated hierarchical band.

Remarks

Raised and inset gridlines are always black and white.

Because the MSHFlexGrid can display nested levels of data, this is an array-based property.

Example

' Ensure the header lines for Band 1 are using the flat style grid.GridLinesHeader(1) = flexGridFlat

' Set the gridline color for that band's header to a specific light gray grid.GridColorHeader(1) = &HC0C0C0 ' vbSilver

Reference