title: Selecting rows programmatically in DataGridView
body: <p>I want to select row of previously selected rows after some event my code is as below.</p>
  <pre><code>int currentRow = dgvIcbSubsInfo.CurrentCell.RowIndex;
  //code to execute
  dgvIcbSubsInfo.Rows[currentRow].Selected = true;
  </code></pre>
  <p>after executing the code the preview will be as below. but i need to get the symbol <code>&gt;</code> in id = 1272741 (blue selection) and not in 1272737</p>
  <p><img src="https://i.stack.imgur.com/4tipE.png" alt="enter image description here" /></p>