# GrapeCity.Spreadsheet.MergePolicy

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="GrapeCity_Spreadsheet_MergePolicy" data-uid="GrapeCity.Spreadsheet.MergePolicy" class="text-break">MergePolicy Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies how the control handles automatic merging of cells based on the values in the cells.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.html">GrapeCity.Spreadsheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_MergePolicy_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum MergePolicy : byte</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum MergePolicy As Byte</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_MergePolicy_Always">Always</td>
        <td><p>Always automatically merges neighboring cells with identical values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_MergePolicy_None">None</td>
        <td><p>Never automatically merges cells.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_MergePolicy_Restricted">Restricted</td>
        <td><p>Automatically merges neighboring cells with identical values if the corresponding cells in another row or column are similarly merged.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
