RowSizingModeproperty
Returns or sets a value that describes the sizing mode of the rows in the MSHFlexGrid.
Syntax
PROPERTY RowSizingMode () AS RowSizingSettings
PROPERTY RowSizingMode (BYVAL sizingMode AS RowSizingSettings)
Parameters
| Name | Description | |
|---|---|---|
sizingMode | An integer or constant that specifies the settings of the row size. flexRowSizeIndividual: Resizing a row changes only the height of that row. This is the default. flexRowSizeAll: Resizing a row changes the height of all rows in the MSHFlexGrid. |
Description
Returns or sets a value that describes the sizing mode of the rows in the MSHFlexGrid.
Remarks
This property only takes effect when AllowUserResizing is set to to flexResizeRows or flexResizeBoth.
Users typically initiate resizing by dragging the boundary of a row in the fixed column (the gray header area on the left).
In hierarchical (multi‑band) layouts, RowSizingMode applies to the actual rendered rows, not to logical bands. When set to flexRowSizeAll, resizing any row causes every visible row—parent rows, child rows, and grandchildren—to adopt the same height.
This behavior is purely visual; it does not affect the underlying Recordset or band structure.
Examples
grid.AllowUserResizing = flexResizeRows grid.RowSizingMode = flexRowSizeAll
To ensure that all rows stay uniform in height whenever a user adjusts one:
Reference
- Documented in Windows/Windows GUI/MSHFlexGrid Class.md
- Topic: Microsoft Hierarchical Grid