title: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount
body: <p>i want to bind my data Gridview  but it throw an error.
   i allow paging when i click on new page e.g 1.2.3 then the above error throw
  here is my code. 
  the one is page index change and the other one is my method of BindGrid.
  the error come when i click one new page 2 or 3 etc</p>
  
  <p>updated code</p>
  
  <pre><code> protected void DataGrid1_PageIndexChanged(Object sender, DataGridPageChangedEventArgs e)
      {
  
          DataGrid1.CurrentPageIndex = e.NewPageIndex;
          DataGrid1.DataSource = Session["data"] as DataTable;
          DataGrid1.DataBind();
      }
      private void BindGrid()
      {
          DataTable data = storedProcedureManager.sp_inactiveFiles(
                  providerID,
                   days, CaseTypeID, CollectorID, user.UserRegID);
          lblMsg.Text = data.Rows.Count + " Record's Found.";
          log.Info(lblMsg.Text);
          Session["data"] = data;
          DataGrid1.DataSource = data;
          DataGrid1.DataBind();
  
          log.Info("Report Displayed.");
  
      }
  </code></pre>