BackColorUnpopulatedproperty
Returns or sets the background color of the unpopulated area of the MSHFlexGrid.
Syntax
PROPERTY BackColorUnpopulated () AS OLE_COLOR
PROPERTY BackColorUnpopulated (BYVAL clr AS OLE_COLOR)
Parameters
| Name | Description | |
|---|---|---|
clr | An 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
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid