title: Argument 'Expression' cannot be converted to type 'DataGridViewRow'
body: <p>I'm getting this error: <code>Argument 'Expression' cannot be converted to type 'DataGridViewRow'.</code> I have no clue what it means or how to fix it, it happens at this line:</p>
  
  <p><code>dt2.Rows(Val(selectedItem))("Position") = dt.Rows(selectedItem.Cells(1).Value)("Mouse Position")</code> </p>
  
  <p>Can someone please explain what the error is and how to fix it?</p>
  
  <pre><code>    Try
  
          If selectedItems Is Nothing Then
              For n = 0 To dt.Rows.Count - 1
                  dt2.Rows.Add(n)
                  dt2.Rows(n)("Position") = dt.Rows.Item(n)("Mouse Position")
              Next
  
          Else
  
              For Each selectedItem As DataGridViewRow In selectedItems
  
  
                  dt2.Rows.Add(selectedItem)
                  dt2.Rows(Val(selectedItem))("Position") = dt.Rows(selectedItem.Cells(1).Value)("Mouse Position")
  
              Next
          End If
  
      Catch ex As Exception
          MsgBox("Error", MsgBoxStyle.Exclamation, "Error!")
      End Try
  </code></pre>