I'm learning c# so apologies if this is a stupid question
I get the error 'listviewitem does not contain a constructor that takes 1 arguments'.
The code I'm using is the following
string lViewItem = new string;
foreach (Collect c in collect)
lViewItem = c.Id.ToString();
lViewItem = c.Name;
ListViewItem lvi = new ListViewItem(lViewItem);
What am I doing wrong.
Thanks in advance.