# GrapeCity.ActiveReports.Rendering.DataTreeBuilder.RebuildResultTree

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_RebuildResultTree_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.RebuildResultTree*">RebuildResultTree Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_RebuildResultTree_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.RebuildResultTree*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_RebuildResultTree_GrapeCity_ActiveReports_Core_Rendering_Data_ReportDataSnapshot_GrapeCity_ActiveReports_Rendering_ReportStore_GrapeCity_Enterprise_Data_DataEngine_ExpressionEvaluation_IExpressionContext_GrapeCity_Enterprise_Data_DataEngine_DataParameter___GrapeCity_Enterprise_Data_DataEngine_InteractiveSortState_System_Collections_Generic_IReadOnlyDictionary_System_String_System_Object__" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.RebuildResultTree(GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot,GrapeCity.ActiveReports.Rendering.ReportStore,GrapeCity.Enterprise.Data.DataEngine.ExpressionEvaluation.IExpressionContext,GrapeCity.Enterprise.Data.DataEngine.DataParameter[],GrapeCity.Enterprise.Data.DataEngine.InteractiveSortState,System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object})">RebuildResultTree(ReportDataSnapshot, ReportStore, IExpressionContext, DataParameter[], InteractiveSortState, IReadOnlyDictionary&lt;string, object&gt;)</h4>
<div class="markdown level1 summary"><p>Rebuilds the result tree of the given <a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.html">ReportDataSnapshot</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Obsolete]
public static DataTree&lt;object&gt;.Snapshot RebuildResultTree(ReportDataSnapshot data, ReportStore reportStore, IExpressionContext rootExpressionContext, DataParameter[] parameters = null, InteractiveSortState sortStates = null, IReadOnlyDictionary&lt;string, object&gt; customContext = null)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.html">ReportDataSnapshot</a></td>
      <td><span class="parametername">data</span></td>
      <td><p>The data snapshot.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Rendering.ReportStore.html">ReportStore</a></td>
      <td><span class="parametername">reportStore</span></td>
      <td><p>The report store.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">IExpressionContext</span></td>
      <td><span class="parametername">rootExpressionContext</span></td>
      <td><p>The root expression context.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DataParameter</span>[]</td>
      <td><span class="parametername">parameters</span></td>
      <td><p>The data parameters, optional.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">InteractiveSortState</span></td>
      <td><span class="parametername">sortStates</span></td>
      <td><p>The interactive sort states, optional.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlydictionary-2">IReadOnlyDictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><span class="parametername">customContext</span></td>
      <td><p>The custom context dictionary, optional.</p>
</td>
    </tr>
  </tbody>
</table>
<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><span class="xref">DataTree</span>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;.<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">Snapshot</a></td>
      <td><p>A rebuilt <span class="xref">GrapeCity.Enterprise.Data.DataEngine.DataTree&lt;T&gt;.Snapshot</span>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_RebuildResultTree_GrapeCity_ActiveReports_Core_Rendering_Data_ReportDataSnapshot_GrapeCity_ActiveReports_Rendering_ReportStore_GrapeCity_Enterprise_Data_DataEngine_ExpressionEvaluation_IExpressionContext_GrapeCity_Enterprise_Data_DataEngine_DataParameter___GrapeCity_Enterprise_Data_DataEngine_InteractiveSortState_System_Collections_Generic_IReadOnlyDictionary_System_String_System_Object___remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Used by AR</p>
</div>


<a id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_RebuildResultTree_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.RebuildResultTree*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_DataTreeBuilder_RebuildResultTree_GrapeCity_ActiveReports_Core_Rendering_Data_ReportDataSnapshot_GrapeCity_Enterprise_Data_DataEngine_DataParameter___System_Func_GrapeCity_Enterprise_Data_DataEngine_Def_Report_GrapeCity_Enterprise_Data_DataEngine_DataParameter___GrapeCity_Enterprise_Data_DataEngine_ExpressionEvaluation_IExpressionContext__GrapeCity_Enterprise_Data_DataEngine_InteractiveSortState_" data-uid="GrapeCity.ActiveReports.Rendering.DataTreeBuilder.RebuildResultTree(GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot,GrapeCity.Enterprise.Data.DataEngine.DataParameter[],System.Func{GrapeCity.Enterprise.Data.DataEngine.Def.Report,GrapeCity.Enterprise.Data.DataEngine.DataParameter[],GrapeCity.Enterprise.Data.DataEngine.ExpressionEvaluation.IExpressionContext},GrapeCity.Enterprise.Data.DataEngine.InteractiveSortState)">RebuildResultTree(ReportDataSnapshot, DataParameter[], Func&lt;Report, DataParameter[], IExpressionContext&gt;, InteractiveSortState)</h4>
<div class="markdown level1 summary"><p>Rebuilds the result tree of the given <a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.html">ReportDataSnapshot</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static DataTree&lt;object&gt;.Snapshot RebuildResultTree(ReportDataSnapshot data, DataParameter[] parameters, Func&lt;Def.Report, DataParameter[], IExpressionContext&gt; makeExpressionContext, InteractiveSortState sortState)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.ReportDataSnapshot.html">ReportDataSnapshot</a></td>
      <td><span class="parametername">data</span></td>
      <td><p>The data snapshot.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">DataParameter</span>[]</td>
      <td><span class="parametername">parameters</span></td>
      <td><p>The data parameters.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;<span class="xref">Def</span>.<span class="xref">Report</span>, <span class="xref">DataParameter</span>[], <span class="xref">IExpressionContext</span>&gt;</td>
      <td><span class="parametername">makeExpressionContext</span></td>
      <td><p>The function to create expression contexts.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">InteractiveSortState</span></td>
      <td><span class="parametername">sortState</span></td>
      <td><p>The interactive sort state.</p>
</td>
    </tr>
  </tbody>
</table>
<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><span class="xref">DataTree</span>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;.<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">Snapshot</a></td>
      <td><p>A rebuilt <span class="xref">GrapeCity.Enterprise.Data.DataEngine.DataTree&lt;T&gt;.Snapshot</span>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
