# C1.Data.ClientView-1.Paging

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Data_ClientView_1_Paging_" data-uid="C1.Data.ClientView`1.Paging*">Paging Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Data_ClientView_1_Paging_" data-uid="C1.Data.ClientView`1.Paging*"></a>
<h4 id="C1_Data_ClientView_1_Paging__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Int32_" data-uid="C1.Data.ClientView`1.Paging``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Int32)">Paging&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;, int)</h4>
<div class="markdown level1 summary"><p>Applies paging to this <a class="xref" href="C1.Data.ClientView-1.html">client view</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PagingView&lt;T&gt; Paging&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt; sortKeySelector, int pageSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Paging(Of TKey)(sortKeySelector As Expression(Of Func(Of T, TKey)), pageSize As Integer) As PagingView(Of T)</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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, TKey&gt;&gt;</td>
      <td><span class="parametername">sortKeySelector</span></td>
      <td><p>A function specifying a sort key.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageSize</span></td>
      <td><p>A value for the <a class="xref" href="C1.Data.PagingView-1.PageSize.html#C1_Data_PagingView_1_PageSize">PageSize</a> property, the number of items to load in a page.</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.Data.PagingView-1.html">PagingView</a>&lt;T&gt;</td>
      <td><p>A <a class="xref" href="C1.Data.PagingView-1.html">paged client view</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<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">TKey</span></td>
      <td><p>The type of the sort key.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Data_ClientView_1_Paging__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Sorting is required, paging entities is impossible without sort.</p>
</div>


<a id="C1_Data_ClientView_1_Paging_" data-uid="C1.Data.ClientView`1.Paging*"></a>
<h4 id="C1_Data_ClientView_1_Paging__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Boolean_System_Int32_" data-uid="C1.Data.ClientView`1.Paging``1(System.Linq.Expressions.Expression{System.Func{`0,``0}},System.Boolean,System.Int32)">Paging&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt;, bool, int)</h4>
<div class="markdown level1 summary"><p>Applies paging to this <a class="xref" href="C1.Data.ClientView-1.html">client view</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PagingView&lt;T&gt; Paging&lt;TKey&gt;(Expression&lt;Func&lt;T, TKey&gt;&gt; sortKeySelector, bool ascending, int pageSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Paging(Of TKey)(sortKeySelector As Expression(Of Func(Of T, TKey)), ascending As Boolean, pageSize As Integer) As PagingView(Of T)</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.linq.expressions.expression-1">Expression</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;T, TKey&gt;&gt;</td>
      <td><span class="parametername">sortKeySelector</span></td>
      <td><p>A function specifying a sort key.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ascending</span></td>
      <td><p>A boolean value indicating whether sorting must be performed in the ascending order (descending, if false).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageSize</span></td>
      <td><p>A value for the <a class="xref" href="C1.Data.PagingView-1.PageSize.html#C1_Data_PagingView_1_PageSize">PageSize</a> property, the number of items to load in a page.</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.Data.PagingView-1.html">PagingView</a>&lt;T&gt;</td>
      <td><p>A <a class="xref" href="C1.Data.PagingView-1.html">paged client view</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<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">TKey</span></td>
      <td><p>The type of the sort key.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Data_ClientView_1_Paging__1_System_Linq_Expressions_Expression_System_Func__0___0___System_Boolean_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Sorting is required, paging entities is impossible without sort.</p>
</div>
</div>
