title: Get First Column Values of Selected Rows of DataGridView in C#
body: <p>I am using following code to Get ID(First) Column of the Selected Data Grid View Result with Button Click </p>
  
  <pre><code>`DataGridViewSelectedCellCollection DGV = this.dgvSearch.SelectedCells;
  for (int i = 0; i &lt;= DGV.Count - 1; i++)
  {
  string ID = Convert.ToString(dgvSearch.CurrentRow.Cells[0].Value);
  MessageBox.Show(ID); 
  }`
  </code></pre>
  
  <p>I am getting ID in message box but for as same as the Column number of times, I just want it for once for each select row.</p>