adding a list<string> collection to a listview in c#

  • From: "Andy B" <a_borka@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 22 Oct 2007 20:23:44 -0400

Here is an interesting question...
 
How do you add a list<string> collection to a listview? I.e. I have:
 
list<string> contacts ContactManager.GetAllContacts();
listView ContactList = New listView();
listItem ListViewRow = new listItem();
 
I need to know how to add the string collection to the row with different
columns. I.e. Contacts[0].Name, Contacts[0].Email and so on...
 
 

Other related posts:

  • » adding a list<string> collection to a listview in c#