# C1.Win.FlexGrid.RowCol.AllowMerging

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_RowCol_AllowMerging_" data-uid="C1.Win.FlexGrid.RowCol.AllowMerging*">AllowMerging Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_RowCol_AllowMerging_" data-uid="C1.Win.FlexGrid.RowCol.AllowMerging*"></a>
<h4 id="C1_Win_FlexGrid_RowCol_AllowMerging" data-uid="C1.Win.FlexGrid.RowCol.AllowMerging">AllowMerging</h4>
<div class="markdown level1 summary"><p>Specifies whether adjacent cells with similar contents will be merged.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual bool AllowMerging { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Property AllowMerging As Boolean</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_RowCol_AllowMerging_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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.</p>
<p>To create tables with merged cells, you must set the <a class="xref" href="C1.Win.FlexGrid.RowCol.AllowMerging.html#C1_Win_FlexGrid_RowCol_AllowMerging">AllowMerging</a> property to a value other 
than <a class="xref" href="C1.Win.FlexGrid.AllowMergingEnum.html#C1_Win_FlexGrid_AllowMergingEnum_None">None</a>, and then set the <a class="xref" href="C1.Win.FlexGrid.RowCol.AllowMerging.html#C1_Win_FlexGrid_RowCol_AllowMerging">AllowMerging</a> property of individual 
rows and columns true for the rows and columns you wish to merge.</p>
<p>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.</p>
</div>
</div>
