Here is the issue:
Quote:
lvDataBinding.Items.Add(items)
The Items.Add method will create a new
single item and will display the GetString().
You need to use Items.AddRange for groups of items, but not all collections support this.
A quick shortcut is to cast your query as a list and cann ForEach():
...
List<string> items = new List<string> { cbItem.SelectedItem.ToString() };
items.Where(item => item.ToString() != null).ToList().ForEach(i=>
{
lvDataBinding.Items.Add(i);
}
txt1.Text = items.ToString();
string.Join(", ",items);
...