Help Center

GridLineWidthHeaderproperty

Returns or sets the width, in pixels, of the lines displayed between the headers of the grid.

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 GridLineWidthHeader (BYVAL BandNumber AS LONG) AS SHORT
PROPERTY GridLineWidthHeader (BYVAL BandNumber AS LONG, BYVAL nWidth AS SHORT)
PROPERTY GridLineWidthHeader () AS SHORT
PROPERTY GridLineWidthHeader (BYVAL nWidth AS SHORT)

Parameters

NameDescription
BandNumberA zero‑based index identifying the band whose header line width is being retrieved or modified. If the band number is omited, band 0 is assumed.
nWidthAn integer representing the width in pixels (e.g., 2 for a thicker line).

Description

Returns or sets the preferred width, in pixels, of the grid lines drawn in the header area of a specific band.

Remarks

The MSHFlexGrid control supports hierarchical data, where each level of the hierarchy is represented as a band. The GridLineWidthHeader property controls the thickness of the grid lines drawn in the header area of a specific band, allowing each level of the hierarchy to have its own visual style.

This property is one of several width‑specific settings that let you fine‑tune the appearance of different grid areas:

  • GridLineWidth – scrollable populated cells
  • GridLineWidthFixed – fixed rows and fixed columns
  • GridLineWidthBand – specific band
  • GridLineWidthHeader – band header area
  • GridLineWidthIndent – indentation area
  • GridLineWidthUnpopulated – empty/unpopulated regions

Example

grid.GridLineWidthHeader(0) = 2 ' Sets the headers of first band to be 2 pixels wide grid.GridLineWidthHeader(1) = 1 ' Sets the headers of the second band to be 1 pixels wide

Reference