C1.Win.C1FlexGrid Namespace > RowCol Class : AllowMerging Property |
'Declaration
<C1CategoryAttribute("Behavior")> <C1DescriptionAttribute("Specifies whether adjacent cells with similar contents will be merged.")> <DefaultValueAttribute()> Public Overridable Property AllowMerging As Boolean
'Usage
Dim instance As RowCol Dim value As Boolean instance.AllowMerging = value value = instance.AllowMerging
[C1Category("Behavior")] [C1Description("Specifies whether adjacent cells with similar contents will be merged.")] [DefaultValue()] public virtual bool AllowMerging {get; set;}
[C1Category("Behavior")] [C1Description("Specifies whether adjacent cells with similar contents will be merged.")] [DefaultValue()] public: virtual property bool AllowMerging { bool get(); void set ( bool value); }
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2