# C1.Data.PagingView-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Data_PagingView_1" data-uid="C1.Data.PagingView`1" class="text-break">PagingView&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a paged <a class="xref" href="C1.Data.ClientView-1.html">client view</a>.</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"><a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.LiveViews.View.html">View</a></div>
    <div class="level2"><a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.LiveViews.View-1.html">View</a>&lt;T&gt;</div>
    <div class="level3"><a class="xref" href="C1.Data.ClientView-1.html">ClientView</a>&lt;T&gt;</div>
    <div class="level4"><span class="xref">PagingView&lt;T&gt;</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ilistsource">IListSource</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.itypedlist">ITypedList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.iitemproperties">IItemProperties</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ieditablecollectionview">IEditableCollectionView</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;T&gt;</div>
    <div><a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.IObservableSource-1.html">IObservableSource</a>&lt;T&gt;</div>
    <div><a class="xref" href="../C1.LiveLinq.4.8/C1.LiveLinq.Indexing.IIndexedSource-1.html">IIndexedSource</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icollectionview">ICollectionView</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Data.html">C1.Data</a></h6>
  <h6><strong>Assembly</strong>: C1.Data.Entity.4.8.dll</h6>
  <h5 id="C1_Data_PagingView_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PagingView&lt;T&gt; : ClientView&lt;T&gt;, IList, ICollection, IDisposable, IListSource, ITypedList, IItemProperties, IEditableCollectionView, IList&lt;T&gt;, ICollection&lt;T&gt;, IObservableSource&lt;T&gt;, IIndexedSource&lt;T&gt;, IEnumerable&lt;T&gt;, ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PagingView(Of T)
    Inherits ClientView(Of T)
    Implements IList, ICollection, IDisposable, IListSource, ITypedList, IItemProperties, IEditableCollectionView, IList(Of T), ICollection(Of T), IObservableSource(Of T), IIndexedSource(Of T), IEnumerable(Of T), ICollectionView, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged</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><p>The type of the entities in the <a class="xref" href="C1.Data.PagingView-1.html">client view</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="C1_Data_PagingView_1_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>
Paging is performed on the server. It is controled by the <a class="xref" href="C1.Data.PagingView-1.PageSize.html#C1_Data_PagingView_1_PageSize">PageSize</a> and 
<a class="xref" href="C1.Data.PagingView-1.PageIndex.html#C1_Data_PagingView_1_PageIndex">PageIndex</a> properties.
</p>
<p>Sorting is required, paging entities is impossible without sort.</p>
</div>
  <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_Data_PagingView_1_LoadSize" data-uid="C1.Data.PagingView`1.LoadSize">
          <a class="xref" href="C1.Data.PagingView-1.LoadSize.html#C1_Data_PagingView_1_LoadSize">LoadSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value controling the number of entities to load in one batch.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_PagingView_1_PageCount" data-uid="C1.Data.PagingView`1.PageCount">
          <a class="xref" href="C1.Data.PagingView-1.PageCount.html#C1_Data_PagingView_1_PageCount">PageCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of pages in this <a class="xref" href="C1.Data.PagingView-1.html">view</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_PagingView_1_PageIndex" data-uid="C1.Data.PagingView`1.PageIndex">
          <a class="xref" href="C1.Data.PagingView-1.PageIndex.html#C1_Data_PagingView_1_PageIndex">PageIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the current page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_PagingView_1_PageSize" data-uid="C1.Data.PagingView`1.PageSize">
          <a class="xref" href="C1.Data.PagingView-1.PageSize.html#C1_Data_PagingView_1_PageSize">PageSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of items in a page.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Data_PagingView_1_TotalItemCount" data-uid="C1.Data.PagingView`1.TotalItemCount">
          <a class="xref" href="C1.Data.PagingView-1.TotalItemCount.html#C1_Data_PagingView_1_TotalItemCount">TotalItemCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total number of entities in the view before paging is applied.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.Data.DataExtensions.ExecuteIn.html#C1_Data_DataExtensions_ExecuteIn__1_System_Collections_Generic_IEnumerable___0__C1_Data_ClientScope_">DataExtensions.ExecuteIn&lt;T&gt;(IEnumerable&lt;T&gt;, ClientScope)</a>
  </div>

</div>
