Help Center

BackColorUnpopulatedproperty

Returns or sets the background color of the unpopulated area 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 BackColorUnpopulated () AS OLE_COLOR
PROPERTY BackColorUnpopulated (BYVAL clr AS OLE_COLOR)

Parameters

NameDescription
clrAn OLE_COLOR value, such as a Visual Basic constant (e.g. vbGrayText), a hex code, or an RGB value.

Description

Returns or sets the background color of the unpopulated area of the grid, i.e. areas within the grid that do not contain data.

Remarks

Unlike the global BackColorBkg (which covers the entirely empty area of the control), BackColorUnpopulated targets regions reserved for bands where no data exists. It is typically used to visually separate populated areas from unpopulated ones in complex, multi-level hierarchical displays.

It is commonly used to visually differentiate between bands that have data and those that are currently empty placeholders in a complex tree-like data view.

Example

' Sets the background color for unpopulated cells in a hierarchical view grid.BackColorUnpopulated = BGR(245, 245, 245) ' Very light gray

Reference