# C1.PivotEngine.C1PivotEngine.GetPivotKey

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_PivotEngine_C1PivotEngine_GetPivotKey_" data-uid="C1.PivotEngine.C1PivotEngine.GetPivotKey*">GetPivotKey Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_PivotEngine_C1PivotEngine_GetPivotKey_" data-uid="C1.PivotEngine.C1PivotEngine.GetPivotKey*"></a>
<h4 id="C1_PivotEngine_C1PivotEngine_GetPivotKey_System_Data_DataColumn_" data-uid="C1.PivotEngine.C1PivotEngine.GetPivotKey(System.Data.DataColumn)">GetPivotKey(DataColumn)</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.PivotEngine.PivotKey.html">PivotKey</a> associated with a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datacolumn">DataColumn</a>
on a PivotEngine table.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PivotKey GetPivotKey(DataColumn column)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPivotKey(column As DataColumn) As PivotKey</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="https://learn.microsoft.com/dotnet/api/system.data.datacolumn">DataColumn</a></td>
      <td><span class="parametername">column</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datacolumn">DataColumn</a> for which the key should be retrieved.</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><a class="xref" href="C1.PivotEngine.PivotKey.html">PivotKey</a></td>
      <td><p>The <a class="xref" href="C1.PivotEngine.PivotKey.html">PivotKey</a> associated with the <code class="paramref">column</code>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_PivotEngine_C1PivotEngine_GetPivotKey_" data-uid="C1.PivotEngine.C1PivotEngine.GetPivotKey*"></a>
<h4 id="C1_PivotEngine_C1PivotEngine_GetPivotKey_System_Data_DataRow_" data-uid="C1.PivotEngine.C1PivotEngine.GetPivotKey(System.Data.DataRow)">GetPivotKey(DataRow)</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.PivotEngine.PivotKey.html">PivotKey</a> associated with a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datarow">DataRow</a>
on a PivotEngine table.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PivotKey GetPivotKey(DataRow row)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPivotKey(row As DataRow) As PivotKey</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="https://learn.microsoft.com/dotnet/api/system.data.datarow">DataRow</a></td>
      <td><span class="parametername">row</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datarow">DataRow</a> for which the key should be retrieved.</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><a class="xref" href="C1.PivotEngine.PivotKey.html">PivotKey</a></td>
      <td><p>The <a class="xref" href="C1.PivotEngine.PivotKey.html">PivotKey</a> associated with the <code class="paramref">row</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
