title: 'System.Data.DataRow' does not contain a definition for 'Item'
body: <p>So, I did some conversion to c# on my former system which is written on vb.net. This is a sample of my code:</p>
  
  <blockquote>
    <p>for (indx = 0; (indx &lt;= (Dt.Rows.Count - 1)); indx++)</p>
  
  <pre><code>        {
              ListViewItem lv = new ListViewItem();
              lv.Text = Dt.Rows[indx].Item["ID"];
              lv.SubItems.Add(Dt.Rows[indx].Item["GuestFName"]);
  
          }
  </code></pre>
  </blockquote>
  
  <p>I got squiggly red lines under Item and this is bothering me. I had the same error on my previous question and it was solved. But this is different to me. What seems to be the problem?</p>
  
  <p>By the way this is the VB.NET code:</p>
  
  <blockquote>
    <p>For indx = 0 To Dt.Rows.Count - 1</p>
  
  <pre><code>        Dim lv As New ListViewItem
          lv.Text = Dt.Rows(indx).Item("ID")
          lv.SubItems.Add(Dt.Rows(indx).Item("GuestFName"))
          lv.SubItems.Add(Dt.Rows(indx).Item("GuestMName"))
          lv.SubItems.Add(Dt.Rows(indx).Item("GuestLName"))
          lvGuest.Items.Add(lv)
  </code></pre>
    
    <p>Next</p>
  </blockquote>