# C1.iOS.DataCollection.C1TableViewSource-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_iOS_DataCollection_C1TableViewSource_1" data-uid="C1.iOS.DataCollection.C1TableViewSource`1" class="text-break">C1TableViewSource&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>This class is the bridge between <span class="xref">UIKit.UITableView</span> and <a class="xref" href="../C1.DataCollection/C1.DataCollection.C1DataCollection-1.html">C1DataCollection&lt;T&gt;</a>.
Using this class you'll get built-in sort, filter, grouping, refresh and load-on-demand features.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">C1TableViewSource&lt;T&gt;</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.iOS.DataCollection.html">C1.iOS.DataCollection</a></h6>
  <h6><strong>Assembly</strong>: C1.iOS.DataCollection.dll</h6>
  <h5 id="C1_iOS_DataCollection_C1TableViewSource_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1TableViewSource&lt;T&gt; : UITableViewSource where T : class</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1TableViewSource(Of T As Class)
    Inherits UITableViewSource</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 id="C1_iOS_DataCollection_C1TableViewSource_1_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Inherit this class and implement <span class="xref">GetItemCell</span> and <span class="xref">GetGroupTitle</span> to set the cell appeareance as you wish.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1__ctor_UIKit_UITableView_" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.#ctor(UIKit.UITableView)">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.-ctor.html#C1_iOS_DataCollection_C1TableViewSource_1__ctor_UIKit_UITableView_">C1TableViewSource(UITableView)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.html">C1TableViewSource&lt;T&gt;</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_DataCollection" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.DataCollection">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.DataCollection.html#C1_iOS_DataCollection_C1TableViewSource_1_DataCollection">DataCollection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the data collection which provides the data items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_EmptyMessageLabel" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.EmptyMessageLabel">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.EmptyMessageLabel.html#C1_iOS_DataCollection_C1TableViewSource_1_EmptyMessageLabel">EmptyMessageLabel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the label displayed when there are no items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_ItemsSource" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.ItemsSource">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.ItemsSource.html#C1_iOS_DataCollection_C1TableViewSource_1_ItemsSource">ItemsSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the items source which provides the data items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_RefreshControl" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.RefreshControl">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.RefreshControl.html#C1_iOS_DataCollection_C1TableViewSource_1_RefreshControl">RefreshControl</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the refresh control used by the user to refresh the list.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_TableView" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.TableView">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.TableView.html#C1_iOS_DataCollection_C1TableViewSource_1_TableView">TableView</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the table view used to display the items.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_Dispose_System_Boolean_" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.Dispose(System.Boolean)">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.Dispose.html#C1_iOS_DataCollection_C1TableViewSource_1_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases unmanaged and - optionally - managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_GetCell_UIKit_UITableView_Foundation_NSIndexPath_" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.GetCell(UIKit.UITableView,Foundation.NSIndexPath)">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.GetCell.html#C1_iOS_DataCollection_C1TableViewSource_1_GetCell_UIKit_UITableView_Foundation_NSIndexPath_">GetCell(UITableView, NSIndexPath)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the table view to get populate the row at indexPath with a cell view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_GetGroupTitle_UIKit_UITableView_C1_DataCollection_IDataCollectionGroup_System_Object_System_Object__" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.GetGroupTitle(UIKit.UITableView,C1.DataCollection.IDataCollectionGroup{System.Object,System.Object})">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.GetGroupTitle.html#C1_iOS_DataCollection_C1TableViewSource_1_GetGroupTitle_UIKit_UITableView_C1_DataCollection_IDataCollectionGroup_System_Object_System_Object__">GetGroupTitle(UITableView, IDataCollectionGroup&lt;object, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the title of a group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_GetItem_Foundation_NSIndexPath_" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.GetItem(Foundation.NSIndexPath)">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.GetItem.html#C1_iOS_DataCollection_C1TableViewSource_1_GetItem_Foundation_NSIndexPath_">GetItem(NSIndexPath)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an item from the <span class="xref">UIKit.UITableView</span> <span class="xref">Foundation.NSIndexPath</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_GetItemCell_UIKit_UITableView_Foundation_NSIndexPath__0_" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.GetItemCell(UIKit.UITableView,Foundation.NSIndexPath,`0)">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.GetItemCell.html#C1_iOS_DataCollection_C1TableViewSource_1_GetItemCell_UIKit_UITableView_Foundation_NSIndexPath__0_">GetItemCell(UITableView, NSIndexPath, T)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the visual element representing an item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_NumberOfSections_UIKit_UITableView_" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.NumberOfSections(UIKit.UITableView)">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.NumberOfSections.html#C1_iOS_DataCollection_C1TableViewSource_1_NumberOfSections_UIKit_UITableView_">NumberOfSections(UITableView)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of sections that are required to display the data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_RowsInSection_UIKit_UITableView_System_IntPtr_" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.RowsInSection(UIKit.UITableView,System.IntPtr)">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.RowsInSection.html#C1_iOS_DataCollection_C1TableViewSource_1_RowsInSection_UIKit_UITableView_System_IntPtr_">RowsInSection(UITableView, nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the table view to find out how many rows are to be rendered in the
section specified by section.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_DataCollection_C1TableViewSource_1_TitleForHeader_UIKit_UITableView_System_IntPtr_" data-uid="C1.iOS.DataCollection.C1TableViewSource`1.TitleForHeader(UIKit.UITableView,System.IntPtr)">
          <a class="xref" href="C1.iOS.DataCollection.C1TableViewSource-1.TitleForHeader.html#C1_iOS_DataCollection_C1TableViewSource_1_TitleForHeader_UIKit_UITableView_System_IntPtr_">TitleForHeader(UITableView, nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Called to populate the header for the specified section.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
