MergeRow Property

Returns or sets whether a row will have its cells merged (see also the MergeCells property).

Syntax

[form!]VSFlexGrid.MergeRow(Row As Long)[ = {True | False} ]

Remarks

The MergeRow property is used in conjunction with the MergeCells, MergeCol, and MergeCompare properties to control whether and how cells are merged for display.

The MergeCells property is used to enable cell merging for the entire control. After setting it to an appropriate value, the MergeRow and MergeCol properties are used to determine which rows and columns should have their cells merged. By default, MergeRow and MergeCol are set to False, so no merging takes place. If you set them to True for a specific row or column, then adjacent cells in that row or column will be merged if their contents are equal. The rule used to compare cell contents is controlled by the MergeCompare property.

The Row parameter should be set to a value between zero and Rows - 1 to set MergeRow for a single row, or -1 to set all rows.

You don't need to set MergeRow to True when MergeCells is set to flexMergeSpill (6).

For more details and examples, see the MergeCells property.

Data Type

Boolean

See Also

VSFlexGrid Control