title: Index out of range exception in datagridview when header is selected
body: <p>I have a datagridview that when I click on a header to sort or for any reason I get the follow error on the following line of code....</p>
  
  <p><strong>Argument our of range exception (Index was out of range.  Must be non negative and less than the size of the collection.</strong></p>
  
  <pre><code> private void firearmView_CellClick(object sender, DataGridViewCellEventArgs e)
      {
              //I get the above error on the IF line below.
              if (!firearmView.Rows[e.RowIndex].IsNewRow) 
              {
                  selectedFirearmPictureBox.Image = Image.FromFile(firearmView.Rows[e.RowIndex].Cells[12].Value.ToString(), true);
              }
  
      }
  </code></pre>
  
  <p>I do not know why I am getting this particular error here.</p>