# GrapeCity.ActiveReports.Extensibility.Data.DataTable.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Extensibility_Data_DataTable__ctor_" data-uid="GrapeCity.ActiveReports.Extensibility.Data.DataTable.#ctor*">DataTable Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Extensibility_Data_DataTable__ctor_" data-uid="GrapeCity.ActiveReports.Extensibility.Data.DataTable.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Extensibility_Data_DataTable__ctor_System_Collections_Generic_IEnumerable_GrapeCity_ActiveReports_Extensibility_Data_DataColumn__System_Collections_Generic_IEnumerable_GrapeCity_ActiveReports_Extensibility_Data_DataRow__" data-uid="GrapeCity.ActiveReports.Extensibility.Data.DataTable.#ctor(System.Collections.Generic.IEnumerable{GrapeCity.ActiveReports.Extensibility.Data.DataColumn},System.Collections.Generic.IEnumerable{GrapeCity.ActiveReports.Extensibility.Data.DataRow})">DataTable(IEnumerable&lt;DataColumn&gt;, IEnumerable&lt;DataRow&gt;)</h4>
<div class="markdown level1 summary"><p>Creates new instance of <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Data.DataTable.html">DataTable</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DataTable(IEnumerable&lt;DataColumn&gt; columns, IEnumerable&lt;DataRow&gt; rows)</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.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Extensibility.Data.DataColumn.html">DataColumn</a>&gt;</td>
      <td><span class="parametername">columns</span></td>
      <td><p>The table columns.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Extensibility.Data.DataRow.html">DataRow</a>&gt;</td>
      <td><span class="parametername">rows</span></td>
      <td><p>The table rows.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
