title: if statement in datagridview currentcell change
body: <p>what is the correct condition to check the current row is changed when you move to the other cell.</p>
  
  <p>I try this code:</p>
  
  <pre><code>Private Sub Legal_RecordsDataGridView_CurrentCellChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Legal_RecordsDataGridView.CurrentCellChanged
  
      if Legal_RecordsDataGridView.CurrentRow.Index = Legal_RecordsDataGridView.CurrentCellAddress.Y then
  
          msgbox("changed")
          else
          msgbox("no")
  
      endif
  End Sub
  </code></pre>
  
  <p>I always get a result of "no" because they always have the same index.</p>
  
  <p>How can I check if the <code>CurrentRow</code> index is the same when I move to the other cell for example when I move to the other cell but the same row I want a result of <code>no</code> but when I move to the other cell like if I'm at the column1 but I moved on column2 but different row then the result is <code>changed</code></p>
  
  <p>I hope you get what i mean!</p>