# C1.Web.Mvc.Olap.Fluent.PivotGridBuilder

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder" class="text-break">PivotGridBuilder Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.html">PivotGrid</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">HideObjectMembers</span></div>
    <div class="level2"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.Fluent.BaseBuilder-2.html">BaseBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.html">PivotGrid</a>, <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.html">PivotGridBuilder</a>&gt;</div>
    <div class="level3"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.Fluent.ComponentBuilder-2.html">ComponentBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.html">PivotGrid</a>, <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.html">PivotGridBuilder</a>&gt;</div>
    <div class="level4"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.Fluent.ControlBuilder-2.html">ControlBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.html">PivotGrid</a>, <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.html">PivotGridBuilder</a>&gt;</div>
    <div class="level5"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.Fluent.ItemsBoundControlBuilder-3.html">ItemsBoundControlBuilder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.html">PivotGrid</a>, <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.html">PivotGridBuilder</a>&gt;</div>
    <div class="level6"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.Fluent.FlexGridBaseBuilder-3.html">FlexGridBaseBuilder</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.html">PivotGrid</a>, <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.html">PivotGridBuilder</a>&gt;</div>
    <div class="level7"><span class="xref">PivotGridBuilder</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.html.ihtmlcontent">IHtmlContent</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Olap.Fluent.html">C1.Web.Mvc.Olap.Fluent</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.Olap.dll</h6>
  <h5 id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PivotGridBuilder : FlexGridBaseBuilder&lt;object, PivotGrid, PivotGridBuilder&gt;, IHtmlContent</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PivotGridBuilder
    Inherits FlexGridBaseBuilder(Of Object, PivotGrid, PivotGridBuilder)
    Implements IHtmlContent</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder__ctor_C1_Web_Mvc_Olap_PivotGrid_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.#ctor(C1.Web.Mvc.Olap.PivotGrid)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.-ctor.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder__ctor_C1_Web_Mvc_Olap_PivotGrid_">PivotGridBuilder(PivotGrid)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.html">PivotGridBuilder</a> instance to configurate <code class="paramref">component</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_AllowMerging_C1_Web_Mvc_Grid_AllowMerging_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.AllowMerging(C1.Web.Mvc.Grid.AllowMerging)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.AllowMerging.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_AllowMerging_C1_Web_Mvc_Grid_AllowMerging_">AllowMerging(AllowMerging)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.AllowMerging.html#C1_Web_Mvc_Olap_PivotGrid_AllowMerging">AllowMerging</a>.
Sets which parts of the grid provide cell merging.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_AlternatingRowStep_System_Int32_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.AlternatingRowStep(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.AlternatingRowStep.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_AlternatingRowStep_System_Int32_">AlternatingRowStep(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.AlternatingRowStep.html#C1_Web_Mvc_Olap_PivotGrid_AlternatingRowStep">AlternatingRowStep</a>.
Sets a value that determines the number of regular rows between 'alternating' rows.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_CenterHeadersVertically_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.CenterHeadersVertically(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.CenterHeadersVertically.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_CenterHeadersVertically_System_Boolean_">CenterHeadersVertically(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.CenterHeadersVertically.html#C1_Web_Mvc_Olap_PivotGrid_CenterHeadersVertically">CenterHeadersVertically</a>.
Sets a value that determines whether the content of header cells should be vertically centered.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_CollapsibleSubtotals_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.CollapsibleSubtotals(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.CollapsibleSubtotals.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_CollapsibleSubtotals_System_Boolean_">CollapsibleSubtotals(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.CollapsibleSubtotals.html#C1_Web_Mvc_Olap_PivotGrid_CollapsibleSubtotals">CollapsibleSubtotals</a>.
Sets a value that determines whether the grid should allow users to collapse and expand subtotal groups of rows and columns.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_CustomContextMenu_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.CustomContextMenu(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.CustomContextMenu.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_CustomContextMenu_System_Boolean_">CustomContextMenu(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.CustomContextMenu.html#C1_Web_Mvc_Olap_PivotGrid_CustomContextMenu">CustomContextMenu</a>.
Sets a value that determines whether the grid should provide a custom context menu.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_IsReadOnly_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.IsReadOnly(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.IsReadOnly.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_IsReadOnly_System_Boolean_">IsReadOnly(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.IsReadOnly.html#C1_Web_Mvc_Olap_PivotGrid_IsReadOnly">IsReadOnly</a>.
Sets a value that determines whether the user can modify cell values using the mouse and keyboard. Default value is True.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ItemsSourceId_System_String_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ItemsSourceId(System.String)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ItemsSourceId.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ItemsSourceId_System_String_">ItemsSourceId(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the source id.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_OutlineMode_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.OutlineMode(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.OutlineMode.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_OutlineMode_System_Boolean_">OutlineMode(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.OutlineMode.html#C1_Web_Mvc_Olap_PivotGrid_OutlineMode">OutlineMode</a>.
Sets a value that determines whether the grid should display row groups in outline format, allowing for more compact displays.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowColumnFieldHeaders_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowColumnFieldHeaders(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowColumnFieldHeaders.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowColumnFieldHeaders_System_Boolean_">ShowColumnFieldHeaders(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowColumnFieldHeaders.html#C1_Web_Mvc_Olap_PivotGrid_ShowColumnFieldHeaders">ShowColumnFieldHeaders</a>.
Sets a value that determines whether the grid should display column field headers in its top-left panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowDetailOnDoubleClick_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowDetailOnDoubleClick(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowDetailOnDoubleClick.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowDetailOnDoubleClick_System_Boolean_">ShowDetailOnDoubleClick(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowDetailOnDoubleClick.html#C1_Web_Mvc_Olap_PivotGrid_ShowDetailOnDoubleClick">ShowDetailOnDoubleClick</a>.
Sets a value that determines whether the grid should show a popup containing the detail records when the user double-clicks a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowRowFieldHeaders_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowRowFieldHeaders(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowRowFieldHeaders.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowRowFieldHeaders_System_Boolean_">ShowRowFieldHeaders(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowRowFieldHeaders.html#C1_Web_Mvc_Olap_PivotGrid_ShowRowFieldHeaders">ShowRowFieldHeaders</a>.
Sets a value that determines whether the grid should display row field headers in its top-left panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowRowFieldSort_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowRowFieldSort(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowRowFieldSort.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowRowFieldSort_System_Boolean_">ShowRowFieldSort(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowRowFieldSort.html#C1_Web_Mvc_Olap_PivotGrid_ShowRowFieldSort">ShowRowFieldSort</a>.
Sets a value that determines whether the grid should display sort indicators in the column headers for row fields.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowValueFieldHeaders_System_Boolean_" data-uid="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowValueFieldHeaders(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Olap.Fluent.PivotGridBuilder.ShowValueFieldHeaders.html#C1_Web_Mvc_Olap_Fluent_PivotGridBuilder_ShowValueFieldHeaders_System_Boolean_">ShowValueFieldHeaders(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowValueFieldHeaders.html#C1_Web_Mvc_Olap_PivotGrid_ShowValueFieldHeaders">ShowValueFieldHeaders</a>.
Sets a value that determines whether the grid should display value field headers in its content panel even when the view has a single value field and a single column field.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
