title: Grid view Row_Command issue
body: <p>my gridview Row command code looks like</p>
  
  <pre><code>protected void GridView_Admins_RowCommand(object sender, GridViewCommandEventArgs e)
      {
          GridView sourceGrid = sender as GridView;
  
          int currentIndex = 0;
          GridViewRow currentRow = null;
  
          if (string.Compare(e.CommandName, "SHOW", true) == 0)
          {
              if (int.TryParse(e.CommandArgument.ToString(), out currentIndex))
              {
  
                  currentRow = sourceGrid.Rows[currentIndex];
  
                  if (long.TryParse(sourceGrid.DataKeys[currentRow.RowIndex].Values["EmployeeID"].ToString(), out this.employeeId))
                      this.ShowAdministrativeRightsForUser();
              }
          }
      }
  </code></pre>
  
  <p>I also have paging enabled in gridview. When I want to edit record I click on particular cell and i can edit records. However when I am on second page when i click on a cell to edit record, I get error at row <code>currentRow = sourceGrid.Rows[currentIndex];</code> saying Index out of range.
  What can be wrong?</p>