MergeCol Property

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

Syntax

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

Remarks

The MergeCol property is used in conjunction with the MergeCells, MergeRow, 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 Col parameter should be set to a value between zero and Cols - 1 to set MergeCol for a single column, or -1 to set all columns.

For more details and examples, see the MergeCells property.

Data Type

Boolean

See Also

VSFlexGrid Control