# GrapeCity.Spreadsheet.IRange.DataTable

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IRange_DataTable_" data-uid="GrapeCity.Spreadsheet.IRange.DataTable*">DataTable Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IRange_DataTable_" data-uid="GrapeCity.Spreadsheet.IRange.DataTable*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_DataTable_System_String_System_String_" data-uid="GrapeCity.Spreadsheet.IRange.DataTable(System.String,System.String)">DataTable(string, string)</h4>
<div class="markdown level1 summary"><p>Creates a data table based on input values and formulas that you define on a worksheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool DataTable(string rowInput, string columnInput)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function DataTable(rowInput As String, columnInput As String) As Boolean</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.string">string</a></td>
      <td><span class="parametername">rowInput</span></td>
      <td><p>A single cell to use as the row input for your table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">columnInput</span></td>
      <td><p>A single cell to use as the column input for your table.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the data table is created; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IRange_DataTable_" data-uid="GrapeCity.Spreadsheet.IRange.DataTable*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_DataTable_GrapeCity_Spreadsheet_CellReference_GrapeCity_Spreadsheet_CellReference_" data-uid="GrapeCity.Spreadsheet.IRange.DataTable(GrapeCity.Spreadsheet.CellReference,GrapeCity.Spreadsheet.CellReference)">DataTable(CellReference, CellReference)</h4>
<div class="markdown level1 summary"><p>Creates a data table based on input values and formulas that you define on a worksheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool DataTable(CellReference rowInput, CellReference columnInput)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function DataTable(rowInput As CellReference, columnInput As CellReference) As Boolean</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="GrapeCity.Spreadsheet.CellReference.html">CellReference</a></td>
      <td><span class="parametername">rowInput</span></td>
      <td><p>A single cell to use as the row input for your table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a></td>
      <td><span class="parametername">columnInput</span></td>
      <td><p>A single cell to use as the column input for your table.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the data table is created; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IRange_DataTable_" data-uid="GrapeCity.Spreadsheet.IRange.DataTable*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_DataTable_GrapeCity_Spreadsheet_IRange_GrapeCity_Spreadsheet_IRange_" data-uid="GrapeCity.Spreadsheet.IRange.DataTable(GrapeCity.Spreadsheet.IRange,GrapeCity.Spreadsheet.IRange)">DataTable(IRange, IRange)</h4>
<div class="markdown level1 summary"><p>Creates a data table based on input values and formulas that you define on a worksheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool DataTable(IRange rowInput, IRange columnInput)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function DataTable(rowInput As IRange, columnInput As IRange) As Boolean</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="GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">rowInput</span></td>
      <td><p>A single cell to use as the row input for your table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">columnInput</span></td>
      <td><p>A single cell to use as the column input for your table.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the data table is created; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
