title: Selecting row that was dragged and dropped in datagridview
body: <p>I created a datagridview with some sample data. When I drag a row in the datagridview to another position this works fine. The only thing I can't get working after hours of attempts is to get the row highlighted that was dragged.
  In my code the row gets highlighted where the row was originally.</p>
  
  <p>Below some screenshots:
  <img src="https://i.imgur.com/9CrlzVP.png" alt="before">
  <img src="https://i.imgur.com/Y3uKI78.png" alt="after"></p>
  
  <p>As you can see I moved row 8 to row 14 but row instead of highlighting row 14 it stays on row 8.</p>
  
  <p>My code stripped:</p>
  
  <pre><code>        Private Sub DataGridViewForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
              LoadDataGridView1()
          End Sub
  
          Public Sub LoadDataGridView1()
              ' Fill datasource
          End Sub
  
          Private Sub Dgv_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles DatagridView1.DragDrop
             ' Code to move row up or down
          End Sub
  
          Private Sub Dgv_DragEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles DatagridView1.DragEnter
              e.Effect = DragDropEffects.Copy
          End Sub
  
          Private Sub DataGridView_CellMouseDown(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DatagridView1.CellMouseDown
              Dim dname As DataGridView = sender
              If e.Button = Windows.Forms.MouseButtons.Left Then
                      Dim view As DataGridViewRow = DirectCast(dname.Rows(e.RowIndex), DataGridViewRow)
                      If view IsNot Nothing Then
                          dname.DoDragDrop(view, DragDropEffects.Copy)
                      End If
                      LoadDataGridView1()
              End If
          End Sub
  </code></pre>