ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / AllowMerging Property

In This Topic
    AllowMerging Property (C1FlexPivotGrid)
    In This Topic
    Gets or sets how cells should be merged.
    Syntax
    'Declaration
     
    Public Property AllowMerging As AllowMergingEnum
    public AllowMergingEnum AllowMerging {get; set;}
    Remarks

    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, set the C1.Win.C1FlexGrid.C1FlexGrid.AllowMerging property to a value other than C1.Win.C1FlexGrid.AllowMergingEnum.None, and set the C1.Win.C1FlexGrid.RowCol.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.

    Example
    The code below causes the grid to merge cells with the same data in column 1:
    See Also