title: NHibernate paging and Binding to Gridview
body: <p>I have a Gridview, which is bound to an IList.
  I'd like to have paging " the safer way" (only fetching the Items I Need), so I created a metod on my repository like this</p>
  
  <pre><code>public Ilist&lt;Item&gt; GetItems(int from, int number){ ... }
  </code></pre>
  
  <p>The thing is that wheen I bind it, it only shows me the n items, and doesn't show the paging controls. I tried to find the way to tell the gridview how many elements I have on my resultset with </p>
  
  <pre><code>public int CountItems{ get{ ... } }
  </code></pre>
  
  <p>but I didnt find a place to tell the GV this value.</p>
  
  <p>What is the strategy here? Is it necessary to have an ObjectDS? I refuse to belive so!</p>
  
  <p>What can I do to have Paging?</p>