title: Selecting cells in Datagridview using vb.net
body: <p>I have a datagridview named datagridview1 inculude a table from ms sql. I want to select a cell and then select another without unselecting the first cell that I have selected before. How can I do that?</p>
  
  <p>I tried this code which is not selecting anything:</p>
  
  <pre><code>Private Sub DataGridView1_CellClick(sender As Object, e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
      If DataGridView1.CurrentCell.Selected = True Then
          DataGridView1.CurrentCell.Selected = False
      Else
          DataGridView1.CurrentCell.Selected = True
      End If
  
  End Sub
  </code></pre>
  
  <p>Any suggestions?</p>