(Also, sorry I can't locate the code snippet button so I'm using 'formatted' in the meanwhile. EDIT: Formatted is garbage.)My code: foreach(var source in sources) { ListViewItem item = new ListViewItem(source.ProductName); item.SubItems.Add(new ListViewItem.ListViewSubItem(item, source.Channels.ToString())); sourceList.Items.Add(item); }
(Also, sorry I can't locate the code snippet button so I'm using 'formatted' in the meanwhile. EDIT: Formatted is garbage.)
My code:
foreach(var source in sources)
{
ListViewItem item = new ListViewItem(source.ProductName);
item.SubItems.Add(new ListViewItem.ListViewSubItem(item, source.Channels.ToString()));
sourceList.Items.Add(item);
}