# C1.WPF.Pivot.FlexPivotGrid.ShowDetail

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Pivot_FlexPivotGrid_ShowDetail_" data-uid="C1.WPF.Pivot.FlexPivotGrid.ShowDetail*">ShowDetail Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Pivot_FlexPivotGrid_ShowDetail_" data-uid="C1.WPF.Pivot.FlexPivotGrid.ShowDetail*"></a>
<h4 id="C1_WPF_Pivot_FlexPivotGrid_ShowDetail_System_Int32_System_Int32_" data-uid="C1.WPF.Pivot.FlexPivotGrid.ShowDetail(System.Int32,System.Int32)">ShowDetail(int, int)</h4>
<div class="markdown level1 summary"><p>Shows a modal dialog containing the detail information that defines the content
of a specific cell in the grid.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ShowDetail(int row, int col)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ShowDetail(row As Integer, col As Integer)</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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Index of the row that contains the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>Index of the row that contains the cell.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Pivot_FlexPivotGrid_ShowDetail_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method provides an easy way to add drill-down functionality to the
<a class="xref" href="C1.WPF.Pivot.FlexPivotGrid.html">FlexPivotGrid</a> control.</p>
</div>
<h5 id="C1_WPF_Pivot_FlexPivotGrid_ShowDetail_System_Int32_System_Int32__examples">Examples</h5>
<p>The code below handles the grid's <b>DoubleClick</b> event to check which
cell was clicked, then invokes the <a class="xref" href="C1.WPF.Pivot.FlexPivotGrid.ShowDetail.html#C1_WPF_Pivot_FlexPivotGrid_ShowDetail_System_Int32_System_Int32_">ShowDetail(int, int)</a> method to display
a modal dialog containing all the raw data items that were used to calculate
the value of the cell that was clicked.</p>
<pre><code class="lang-csharp">void OlapGrid_DoubleClick(object sender, MouseButtonEventArgs e)
{
  var grid = _c1OlapPage.OlapGrid;
  var ht = grid.HitTest(e);
  if (ht.CellType == CellType.Cell &amp;&amp; ht.Row &gt; -1 &amp;&amp; ht.Column &gt; &gt; -1)
  {
    grid.ShowDetail(ht.Row, ht.Column);
  }
}</code></pre>

</div>
