# GrapeCity.Spreadsheet.IRange.Ungroup

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IRange_Ungroup_" data-uid="GrapeCity.Spreadsheet.IRange.Ungroup*">Ungroup Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IRange_Ungroup_" data-uid="GrapeCity.Spreadsheet.IRange.Ungroup*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_Ungroup" data-uid="GrapeCity.Spreadsheet.IRange.Ungroup">Ungroup()</h4>
<div class="markdown level1 summary"><p>Promotes a range in an outline (that is, decreases its outline level). The specified range must be a row or column, or a range of rows or columns. If the range is in a PivotTable report, this method ungroups the items contained in the range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool Ungroup()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Ungroup() As Boolean</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the specified range is ungrouped, <code>false</code> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_IRange_Ungroup_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the active cell is in a field header of a parent field, all the groups in that field are ungrouped and the field is removed from the PivotTable report. When the last group in a parent field is ungrouped, the entire field is removed from the report.</p>
</div>
</div>
