Created
August 22, 2018 08:55
-
-
Save banghieudep/96ff2671d9097030e8a53687c472ec4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myListView.SmallImageList = imageList1; // Liên kết danh sách hình ảnh nhỏ với imageList1 | |
ListViewItem cntt = new ListViewItem("Công Nghệ Thông Tin", 0); | |
ListViewItem.ListViewSubItem svcntt = new ListViewItem.ListViewSubItem(cntt, "3.000 bảng hiệu đẹp"); | |
cntt.SubItems.Add(svcntt); | |
myListView.Items.Add(cntt); | |
ListViewItem bk = new ListViewItem("Bách Khoa", 1); | |
ListViewItem.ListViewSubItem svbk = new ListViewItem.ListViewSubItem(bk, "18.00 bảng hiệu đẹp"); | |
bk.SubItems.Add(svbk); | |
myListView.Items.Add(bk); | |
ListViewItem khtn = new ListViewItem("Khoa Học Tự Nhiên",2); | |
ListViewItem.ListViewSubItem svkhtn = new ListViewItem.ListViewSubItem(khtn, "20.000 bảng hiệu đẹp"); | |
khtn.SubItems.Add(svkhtn); | |
myListView.Items.Add(khtn); | |
ListViewItem nv = new ListViewItem("Khoa Học Xã Hội & Nhân Văn", 3); | |
ListViewItem.ListViewSubItem svnv = new ListViewItem.ListViewSubItem(nv, "15.000 bảng hiệu đẹp"); | |
nv.SubItems.Add(svnv); | |
myListView.Items.Add(nv); | |
ListViewItem ktl = new ListViewItem("Kinh Tế - Luật", 4); | |
ListViewItem.ListViewSubItem svktl = new ListViewItem.ListViewSubItem(ktl, "10.000 bảng hiệu đẹp"); | |
ktl.SubItems.Add(svktl); | |
myListView.Items.Add(ktl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment