For example Listview consists of 5 items.In that 0, 3 items are repeated and 1,4 are also repeated.Now I have to get the distinct items in a textbox from the list of items.These items are static in listview
0-------------A
1-------------B
2-------------C
3-------------A
4-------------B
List<string[]> list;
list = new List<string[]>();
foreach (ListViewItem lvi in listView1.Items)
{
string[] values = new string[] { lvi.Text };
list.Add(values);
}
From tha above code I filled the list from that list distinct items should display in textbox control
A,B items should be displayed in textbox.