c# array to listview code example
Example 1: c# array to list
var intArray = new[] { 1, 2, 3, 4, 5 };
var list = new List<int>(intArray);
Example 2: c# arraylist to listview
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);
}
}