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.

 

foreach (ListViewItem itemRow in listView1.Items)
{             
    for (int i = 0; i < itemRow.SubItems.Count; i++) 
    {
        string dueDate = itemRow.SubItems[i].Text;
        MessageBox.Show(dueDate);
    }
}

 

相关文章:

  • 2021-11-02
  • 2021-08-08
  • 2021-10-19
  • 2021-10-19
  • 2021-10-19
  • 2021-10-09
  • 2021-08-15
猜你喜欢
  • 2021-11-03
  • 2017-12-22
  • 2021-10-19
  • 2021-11-30
  • 2021-12-28
  • 2021-06-24
  • 2021-09-29
  • 2021-12-25
相关资源
相似解决方案