I have a sortedList, and I want to display it as a table - column one being the sorted list's key, and column 2 being the actual value.
I tried it as follows, using a viewList to display everything:
Expand|Select|Wrap|Line Numbers
- foreach (String word in sortedList1.GetKeyList())
- {
- String[] entry = new String[] { word, (String)sortedList1[word]};
- viewList1.Items.Add(new ListViewItem(entry));
- }
Any ideas how i can do this another (FASTER) way!! ;)
thanks