GridLinesproperty
Returns or sets a value that determines whether lines are drawn between cells of the grid
Syntax
PROPERTY GridLines () AS GridLineSettings
PROPERTY GridLines (BYVAL value AS GridLineSettings)
Parameters
| Name | Description | |
|---|---|---|
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 between cells.
Remarks
When the GridLines property is set to 1 (flat lines), the color of the lines is determined by the GridColor property. However, if using flexGridInset or flexGridRaised, the colors are typically managed by the system to maintain the 3D effect. Raised and inset gridlines are always black and white.
Visual grouping: If you want to group rows visually without lines, set GridLines = flexGridNone and use alternating CellBackColor values to create a "zebra stripe" effect.
Hierarchical bands: In hierarchical mode, gridlines apply consistently across all bands. If you need distinct line styles for specific data levels, you typically have to manage this through background color contrast rather than the GridLines property itself.
Example
' Removes all internal data gridlines grid.GridLines = flexGridNone
Reference
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid