title: How to retrieve the row index from DataGridCellInfo
body: <p>I have read scores of posts about this topic but none seem to address my specific issue.  I am using a wpf grid with vb behind.  Here is my event handler:</p>
  
  <pre><code>Private Sub dgrdMain_SelectedCellsChanged(sender As Object, e As SelectedCellsChangedEventArgs) Handles dgrMain.SelectedCellsChanged
      If e.RemovedCells.Count &gt; 0 Then
          Dim ilRemovedCells As IList(Of DataGridCellInfo) = e.RemovedCells
          For Each rc As DataGridCellInfo In ilRemovedCells
              rc.Column.DisplayIndex   'This gives the column index
              'How do I get the row index?
          Next
      End If
  </code></pre>
  
  <p>Here rc=removed cell.  My question is the comment line above.</p>