title: 'Index was out of range. It must not be a negative value and must be smaller than the size of the collection
body: <pre><code>int secilenıd = GridView1.SelectedIndex;
  
  GridViewRow row = GridView1.Rows[secilenıd];
  
  string sorgu = &quot;DELETE  FROM PersonelBilgileri WHERE PersonelID='&quot;+row.Cells[1].Text + &quot;'&quot;;
  
  SqlCommand cmd = new SqlCommand();
  </code></pre>