FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / RowCol Class / AllowMerging Property

In This Topic
    AllowMerging Property (RowCol)
    In This Topic
    Specifies whether adjacent cells with similar contents will be merged.
    Public Overridable Property AllowMerging As Boolean
    public virtual bool AllowMerging {get; set;}

    Merging cells allows you to display data in a clear, appealing way because it highlights groups of identical information. It also gives you flexibility to build tables similar to the ones you can create in HTML or using Microsoft Word, both of which support merged cells.

    To create tables with merged cells, you must set the AllowMerging property to a value other than AllowMergingEnum.None, and then set the AllowMerging property of individual rows and columns true for the rows and columns you wish to merge.

    After these properties are set, the grid will automatically merge adjacent cells that have the same contents. Whenever the cell contents change, the grid updates the merging state.

    See Also