# C1.Web.Mvc.Olap.PivotGrid

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Olap_PivotGrid" data-uid="C1.Web.Mvc.Olap.PivotGrid" class="text-break">PivotGrid Class
</h1>
  <div class="markdown level0 summary"><p>Displays the pivot tables.</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"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.Component.html">Component</a></div>
    <div class="level2"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.Control.html">Control</a></div>
    <div class="level3"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.ItemsBoundControl-1.html">ItemsBoundControl</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div class="level4"><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.FlexGridBase-1.html">FlexGridBase</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div class="level5"><span class="xref">PivotGrid</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><a class="xref" href="../C1.AspNetCore.Mvc/C1.Web.Mvc.ITemplate.html">ITemplate</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Olap.html">C1.Web.Mvc.Olap</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.Olap.dll</h6>
  <h5 id="C1_Web_Mvc_Olap_PivotGrid_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PivotGrid : FlexGridBase&lt;object&gt;, IHtmlContent, ITemplate</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PivotGrid
    Inherits FlexGridBase(Of Object)
    Implements IHtmlContent, ITemplate</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_PivotGrid__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_" data-uid="C1.Web.Mvc.Olap.PivotGrid.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper,System.String)">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.-ctor.html#C1_Web_Mvc_Olap_PivotGrid__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_">PivotGrid(IHtmlHelper, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.html">PivotGrid</a> instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</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_PivotGrid_AllowMerging" data-uid="C1.Web.Mvc.Olap.PivotGrid.AllowMerging">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.AllowMerging.html#C1_Web_Mvc_Olap_PivotGrid_AllowMerging">AllowMerging</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets which parts of the grid provide cell merging.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_PivotGrid_AlternatingRowStep" data-uid="C1.Web.Mvc.Olap.PivotGrid.AlternatingRowStep">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.AlternatingRowStep.html#C1_Web_Mvc_Olap_PivotGrid_AlternatingRowStep">AlternatingRowStep</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines the number of regular rows between 'alternating' rows.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_PivotGrid_CenterHeadersVertically" data-uid="C1.Web.Mvc.Olap.PivotGrid.CenterHeadersVertically">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.CenterHeadersVertically.html#C1_Web_Mvc_Olap_PivotGrid_CenterHeadersVertically">CenterHeadersVertically</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_PivotGrid_CollapsibleSubtotals" data-uid="C1.Web.Mvc.Olap.PivotGrid.CollapsibleSubtotals">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.CollapsibleSubtotals.html#C1_Web_Mvc_Olap_PivotGrid_CollapsibleSubtotals">CollapsibleSubtotals</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_PivotGrid_CustomContextMenu" data-uid="C1.Web.Mvc.Olap.PivotGrid.CustomContextMenu">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.CustomContextMenu.html#C1_Web_Mvc_Olap_PivotGrid_CustomContextMenu">CustomContextMenu</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the grid should provide a custom context menu.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_PivotGrid_IsReadOnly" data-uid="C1.Web.Mvc.Olap.PivotGrid.IsReadOnly">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.IsReadOnly.html#C1_Web_Mvc_Olap_PivotGrid_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_PivotGrid_ItemsSourceId" data-uid="C1.Web.Mvc.Olap.PivotGrid.ItemsSourceId">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ItemsSourceId.html#C1_Web_Mvc_Olap_PivotGrid_ItemsSourceId">ItemsSourceId</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the id of the source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Olap_PivotGrid_OutlineMode" data-uid="C1.Web.Mvc.Olap.PivotGrid.OutlineMode">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.OutlineMode.html#C1_Web_Mvc_Olap_PivotGrid_OutlineMode">OutlineMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_PivotGrid_ShowColumnFieldHeaders" data-uid="C1.Web.Mvc.Olap.PivotGrid.ShowColumnFieldHeaders">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowColumnFieldHeaders.html#C1_Web_Mvc_Olap_PivotGrid_ShowColumnFieldHeaders">ShowColumnFieldHeaders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_PivotGrid_ShowDetailOnDoubleClick" data-uid="C1.Web.Mvc.Olap.PivotGrid.ShowDetailOnDoubleClick">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowDetailOnDoubleClick.html#C1_Web_Mvc_Olap_PivotGrid_ShowDetailOnDoubleClick">ShowDetailOnDoubleClick</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_PivotGrid_ShowRowFieldHeaders" data-uid="C1.Web.Mvc.Olap.PivotGrid.ShowRowFieldHeaders">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowRowFieldHeaders.html#C1_Web_Mvc_Olap_PivotGrid_ShowRowFieldHeaders">ShowRowFieldHeaders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_PivotGrid_ShowRowFieldSort" data-uid="C1.Web.Mvc.Olap.PivotGrid.ShowRowFieldSort">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowRowFieldSort.html#C1_Web_Mvc_Olap_PivotGrid_ShowRowFieldSort">ShowRowFieldSort</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_PivotGrid_ShowValueFieldHeaders" data-uid="C1.Web.Mvc.Olap.PivotGrid.ShowValueFieldHeaders">
          <a class="xref" href="C1.Web.Mvc.Olap.PivotGrid.ShowValueFieldHeaders.html#C1_Web_Mvc_Olap_PivotGrid_ShowValueFieldHeaders">ShowValueFieldHeaders</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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>
