GridLinesHeaderproperty
Returns or sets a value that determines the type of lines that are drawn between the header.
Syntax
PROPERTY GridLinesHeader (BYVAL BandNumber AS LONG) AS GridLineSettings
PROPERTY GridLinesHeader (BYVAL BandNumber AS LONG, BYVAL value AS GridLineSettings)
PROPERTY GridLinesHeader () AS GridLineSettings
PROPERTY GridLinesHeader (BYVAL value AS GridLineSettings)
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. | |
value | A Long value or constant that specifies the type of lines drawn, as described in Settings. |
Description
Returns or sets a value that determines whether lines are drawn within the header area of a specified band.
Remarks
While the global GridLinesFixed property sets the style for the overall fixed areas of the grid, GridLinesHeader provides granular control over the internal headers of each hierarchical level.
The color of these lines is determined globally by the GridColorFixed property. However, this color only applies if the style is set to flexGridFlat. For 3D styles (Inset/Raised), the system uses standard highlight and shadow colors. Raised and inset gridlines are always black and white.
Unlike the global GridLines property, GridLinesHeader is an array property indexed by the band number, allowing you to apply different visual styles to the header gridlines for each level of nested data.
Example
' Sets the header of the primary band (Band 0) to flat lines grid.GridLinesHeader(0) = flexGridFlat
' Sets the header of the child band (Band 1) to a raised 3D look grid.GridLinesHeader(1) = flexGridRaised
Reference
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid