title: How to get paging on IEnumerator object
body: <p>I have list of rows stored in object IEnumerator. </p>
  
  <p>I need to display the row items as paging so that On Next button click it would display next item from the object while on pressing Previous button it should display the previous row.</p>
  
  <p>My failed attempted code below...</p>
  
  <pre><code>    Dim en As IEnumerator
      Dim row As DataRow
      Dim dt As DataTable dt = loadTips() // return datatable
      en = dt.Rows.GetEnumerator()
  
   Protected Sub btn_nxt_Click(sender As Object, e As EventArgs) Handles btn_nxt.Click
          While en.MoveNext
              row = en.Current
              Response.Write(row(0))
          End While
      End Sub
  
     Protected Sub btn_pre_Click(sender As Object, e As EventArgs) Handles btn_pre.Click
          ' code to move previous row
      End Sub
  </code></pre>