Hi so basically i have Three Lists that i wont to combine into One to add to a ListView.
So ListViewItem 0 Text would be the first lists index 0, the next lists index 0 would be it's sub item, and finally the third lists index 0 would be another sub item.
The next ListViewItem would be index 1 from the first lists. Just wondered if this is ok. It works.
Code:Dim one As New List(Of String)({"OneZero", "OneOne", "OneTwo"}) Dim two As New List(Of String)({"TwoZero", "TwoOne", "TwoTwo"}) Dim three As New List(Of String)({"ThreeZero", "ThreeOne", "ThreeTwo"}) Dim query = ( From item1 In one From item2 In two From item3 In three Select New ListViewItem(New String() {item1, item2, item3})).ToArray




Reply With Quote