protected void Page_PreRenderComplete(object sender, EventArgs e)
 {
     //PreRenderComplete occurs just after databinding page events
     //load a pointer to point to your DataPager control
     DataPager thePager = TracksSelectionList.FindControl("DataPager1") as DataPager;
     if (thePager != null)
     {
         //this code will check the StartRowIndex to see if it is greater than the
         //total count of the collection
         if (thePager.StartRowIndex > thePager.TotalRowCount)
         {
             thePager.SetPageProperties(0, thePager.MaximumRows, true);
         }
     }
 }