GridColorBandproperty
Returns or sets the line color used between the bands of the MSHFlexGrid.
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 GridColorBand (BYVAL BandNumber AS LONG) AS OLE_COLOR
PROPERTY GridColorBand (BYVAL BandNumber AS LONG, BYVAL clr AS OLE_COLOR)
PROPERTY GridColorBand () AS OLE_COLOR
PROPERTY GridColorBand (BYVAL clr AS OLE_COLOR)
Parameters
| Name | Description | |
|---|---|---|
BandNumber | A zero‑based index identifying the band whose background color is being retrieved or modified. If the band number is omited, band 0 is assumed. | |
clr | An OLE_COLOR value, such as a system color constant or an RGB value. |
Description
Returns or sets the color of the gridlines specifically for a targeted 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 both bands are using a flat line style grid.GridLinesBand(0) = flexGridFlat gris.GridLinesBand(1) = flexGridFlat
' Apply different colors to the lines of each band grid.GridColorBand(0) = &H404040 ' Dark Gray grid.GridColorBand(1) = &HC0C0C0 ' Light Gray
Reference
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid