The first time using the ListView, Baidu Search learned some concepts, know how to add columns, rows (items, subkeys).
THIS.LISTVIEW1.COLUMNS.ADD ("Column 1", horizontalalignment.left);//Add Column
THIS.LISTVIEW1.COLUMNS.ADD ("Column 2", HorizontalAlignment.Left);
THIS.LISTVIEW1.COLUMNS.ADD ("Column 3", HorizontalAlignment.Left);
ListViewItem LV = new ListViewItem ();//Create Item
Lv. Text = "Li Zicheng"; Text displayed by the item
Lv. SubItems.Add ("Communist bandits"); subkey for Item LV
Lv. SubItems.Add ("death penalty");
LISTVIEW1.ITEMS.ADD (LV);
The result of the run is always just not displayed.
Small white I searched, found that the ListView is really the way to add data. The majority of the genius know that the original want to display the list, you have to set the display way:
Listview1.view = View.Details;
Add this sentence and it's OK. Baidu Search code is not written in this sentence, it is estimated that they are set in the view ....
Use the ListView for the first time