title: Ria Framework DomainDataSource MoveToNextPage, MoveToPage, MoveToFirstPage doesn't move pages
body: <p>I'm attempting to write a save results extension to the DomainDatasourceView.
  I can successfully write the contents of the current page of results but when I attempt to call MoveToNextPage(), the PageIndex stays current. MSDN docs regarding this don't provide any details other than MoveToNextPage returns a bool is it successfully moves to the next page.</p>
  
  <p>The following sample code results in an infinite loop, and the Current page is never changed.</p>
  
  <pre><code>private void WriteResults(DomainDataSourceView resultsview)
  {
      StringBuilder csvdata = new StringBuilder();
      ... Do Work on current page ...
      if(resultsview.CanChangePage &amp;&amp; resultsview.MoveToNextPage())
      {
          csvdata.Append(WriteResults(resultsview));
      }
  }
  </code></pre>
  
  <p>Do I need to listen for the PageChanged Event to continue Saving Results?</p>
  
  <p>Do I need to call Load on the DomainDataSource for each page?</p>
  
  <p>The <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.ria.domaindatasourceview_members%28v=vs.91%29.aspx" rel="nofollow">MSDN Docs on DomainDataSourceView</a> doesn't go into too much details on this subject.</p>
  
  <p>[Edit]
  After playing around some more, I was able to determine that the Move...Page commands do call the the DomainDataSource Load operation, however its another Async call, so any consecutive work that needs to be done on the loaded pages, should be handled accordingly.</p>