title: Foreach Sub Item In ListView
body: <p>I was wanting to be able to iterate through each of my ListViews sub items and get the value from each. I have tried various things but am finding it really difficult to just get the sub item text from the second column, not the items text from the first column. Thanks.</p>
  
  <pre><code>foreach (ListViewItem itemRow in listView1.Items)
  {             
      for (int i = 0; i &lt; itemRow.SubItems.Count; i++) 
      {
          string dueDate = itemRow.SubItems[i].Text;
          MessageBox.Show(dueDate);
      }
  }
  </code></pre>