How I can add in one step an Array of string into a Listview for example using LINQ or Casting methods?
This is what I've tried but does not work:
ListView1.Items.AddRange("a b c d e f".Split(" ").ToArray _
.Select(Function(x) New ListViewItem(x)))
UPDATE:
Another try, does not work:
ListView1.Items.AddRange( _
New ListView.ListViewItemCollection( _
{"Value 1", "Value 2", "Value 3"} _
.Select(Function(x) New ListViewItem(x))))