# C1.DataCollection.BindingList.C1BindingListDataCollectionEx.AsDataCollection

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataCollection_BindingList_C1BindingListDataCollectionEx_AsDataCollection_" data-uid="C1.DataCollection.BindingList.C1BindingListDataCollectionEx.AsDataCollection*">AsDataCollection Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataCollection_BindingList_C1BindingListDataCollectionEx_AsDataCollection_" data-uid="C1.DataCollection.BindingList.C1BindingListDataCollectionEx.AsDataCollection*"></a>
<h4 id="C1_DataCollection_BindingList_C1BindingListDataCollectionEx_AsDataCollection_System_ComponentModel_IBindingList_" data-uid="C1.DataCollection.BindingList.C1BindingListDataCollectionEx.AsDataCollection(System.ComponentModel.IBindingList)">AsDataCollection(IBindingList)</h4>
<div class="markdown level1 summary"><p>Wraps the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ibindinglist">IBindingList</a> into a data collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static C1BindingListDataCollection AsDataCollection(this IBindingList bindingList)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function AsDataCollection(bindingList As IBindingList) As C1BindingListDataCollection</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.componentmodel.ibindinglist">IBindingList</a></td>
      <td><span class="parametername">bindingList</span></td>
      <td><p>The binding list.</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.DataCollection.BindingList.C1BindingListDataCollection.html">C1BindingListDataCollection</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_DataCollection_BindingList_C1BindingListDataCollectionEx_AsDataCollection_" data-uid="C1.DataCollection.BindingList.C1BindingListDataCollectionEx.AsDataCollection*"></a>
<h4 id="C1_DataCollection_BindingList_C1BindingListDataCollectionEx_AsDataCollection_System_Data_DataTable_" data-uid="C1.DataCollection.BindingList.C1BindingListDataCollectionEx.AsDataCollection(System.Data.DataTable)">AsDataCollection(DataTable)</h4>
<div class="markdown level1 summary"><p>Wraps the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datatable">DataTable</a> into a data collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static C1BindingListDataCollection AsDataCollection(this DataTable dataTable)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function AsDataCollection(dataTable As DataTable) As C1BindingListDataCollection</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.datatable">DataTable</a></td>
      <td><span class="parametername">dataTable</span></td>
      <td><p>The data 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="C1.DataCollection.BindingList.C1BindingListDataCollection.html">C1BindingListDataCollection</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
