I am trying to add a list of related lables to a listview. I made it like this
foreach (String s in values)
{
LinkLabel label = new LinkLabel();
label.Text = s;
txtBox.Controls.Add(label);
}
}
It adds only one item to the list, even if there are more. Any ideas?
ps), I can say that there are more elements from adding breakbpoint and using console.writeline in iteration
thank
source
share