📜  c# arraylist to listview - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:14.732000             🧑  作者: Mango

代码示例1
private void read()
{
    foreach(Person p in list)
    {
        ListViewItem item = new ListViewItem();
        item.Text = p.Name;
        item.SubItems.Add(p.Position);
        item.SubItems.Add(p.Team);
        lstvPerson.Items.Add(item);            
    }
}