[![enter image description here](https://i.stack.imgur.com/Sx0CM.jpg)](https://i.stack.imgur.com/Sx0CM.jpg)I am trying to show a dgv2 on dgv1 but right under the row in dgv1 being edited. 

I tried with this code

```
  Private Sub Purchases_CellBeginEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles Purchases.CellBeginEdit

    Dim Y as integer = 0

   For i As Integer = 0 To dgv1.CurrentRow.Index
            If dgv1.Rows(i).Index < dgv1.CurrentRow.Index Then
                Y = dgv1.Rows.Count * dgv1.Rows(0).Height + dgv1.ColumnHeadersHeight + 12
            End If
        Next
        dgv2.Location = New Point(53, Y)

  End Sub

```

I shows alright but when i go back to row 1 on dgv1, it stays where it is. Lets say i start to edit from row 1 and i get to row 4, and i want to make a correction in row 1, i want dgv2 to move back under row1. 

Any help would be greatly appreciated.