I have 2 Listviews, which both contain a list of names. For example :

Listview1
---------
Jon
Jim
Alan
Lee
Claire
Paul

ListView2
---------
Susan
James
Tony
Jon
Alan

What I'd like to do is compare the two listboxes, and if a name appears in both lists, I'd like to remove it from List2

I have the following code which populates the Listviews, and I assume I need to add something into the For...Next Loop, but I'm not sure what?

VB Code:
  1. Dim aRow As DataRow
  2. Dim X As ListViewItem = Nothing
  3. For Each aRow In ds.Tables(0).Rows
  4.      X = New ListViewItem(aRow.Item("Name").ToString, 0)
  5.      Listview2.Items.AddRange(New ListViewItem() {X})
  6. Next

Can anyone help please ?