# C1.Xamarin.Forms.Grid.GridBase.OnCellLongPressed

## Content

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



<h1 id="C1_Xamarin_Forms_Grid_GridBase_OnCellLongPressed_" data-uid="C1.Xamarin.Forms.Grid.GridBase.OnCellLongPressed*">OnCellLongPressed Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Xamarin_Forms_Grid_GridBase_OnCellLongPressed_" data-uid="C1.Xamarin.Forms.Grid.GridBase.OnCellLongPressed*"></a>
<h4 id="C1_Xamarin_Forms_Grid_GridBase_OnCellLongPressed_C1_Xamarin_Forms_Grid_GridInputEventArgs_" data-uid="C1.Xamarin.Forms.Grid.GridBase.OnCellLongPressed(C1.Xamarin.Forms.Grid.GridInputEventArgs)">OnCellLongPressed(GridInputEventArgs)</h4>
<div class="markdown level1 summary"><p>Called when a cell is being held.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected void OnCellLongPressed(GridInputEventArgs e)</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="C1.Xamarin.Forms.Grid.GridInputEventArgs.html">GridInputEventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>Event data.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Xamarin_Forms_Grid_GridBase_OnCellLongPressed_" data-uid="C1.Xamarin.Forms.Grid.GridBase.OnCellLongPressed*"></a>
<h4 id="C1_Xamarin_Forms_Grid_GridBase_OnCellLongPressed_C1_Xamarin_Forms_Grid_GridCellType_C1_Xamarin_Forms_Grid_GridCellRange_C1_Xamarin_Forms_Core_C1TappedEventArgs_" data-uid="C1.Xamarin.Forms.Grid.GridBase.OnCellLongPressed(C1.Xamarin.Forms.Grid.GridCellType,C1.Xamarin.Forms.Grid.GridCellRange,C1.Xamarin.Forms.Core.C1TappedEventArgs)">OnCellLongPressed(GridCellType, GridCellRange, C1TappedEventArgs)</h4>
<div class="markdown level1 summary"><p>Called when a cell is being held.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void OnCellLongPressed(GridCellType cellType, GridCellRange range, C1TappedEventArgs te)</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="C1.Xamarin.Forms.Grid.GridCellType.html">GridCellType</a></td>
      <td><span class="parametername">cellType</span></td>
      <td><p>The type of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Xamarin.Forms.Grid.GridCellRange.html">GridCellRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../C1.Xamarin.Forms.Core/C1.Xamarin.Forms.Core.C1TappedEventArgs.html">C1TappedEventArgs</a></td>
      <td><span class="parametername">te</span></td>
      <td><p>The tapped events</p>
</td>
    </tr>
  </tbody>
</table>
</div>
