ListViewItem item = new ListViewItem(); foreach (Person p in person1) { item.SubItems[0].Text = p.Id.ToString(); item.SubItems.Add(p.Name); item.SubItems.Add(p.Age.ToString()); listView1.Items.Add(item); }
把ListViewItem item = new ListViewItem();初始化加到循环里面
标签:SubItems,System,item,Add,移除,ArgumentException,ListViewItem From: https://www.cnblogs.com/lin-07/p/17636024.html