Created
August 22, 2018 08:53
-
-
Save banghieudep/c88682c06bc7003f38414f8d8450142d 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
// Add subitem | |
ListViewItem cntt = new ListViewItem("Công Nghệ Thông Tin"); | |
ListViewItem.ListViewSubItem svcntt = new ListViewItem.ListViewSubItem(cntt, "3.000 sinh viên"); | |
cntt.SubItems.Add(svcntt); | |
myListView.Items.Add(cntt); | |
ListViewItem bk = new ListViewItem("Bách Khoa"); | |
ListViewItem.ListViewSubItem svbk = new ListViewItem.ListViewSubItem(bk, "18.00 sinh viên"); | |
bk.SubItems.Add(svbk); | |
myListView.Items.Add(bk); | |
ListViewItem khtn = new ListViewItem("Khoa Học Tự Nhiên"); | |
ListViewItem.ListViewSubItem svkhtn = new ListViewItem.ListViewSubItem(khtn, "20.000 sinh viên"); | |
khtn.SubItems.Add(svkhtn); | |
myListView.Items.Add(khtn); | |
ListViewItem nv = new ListViewItem("Khoa Học Xã Hội & Nhân Văn"); | |
ListViewItem.ListViewSubItem svnv = new ListViewItem.ListViewSubItem(nv, "15.000 sinh viên"); | |
nv.SubItems.Add(svnv); | |
myListView.Items.Add(nv); | |
ListViewItem ktl = new ListViewItem("Kinh Tế - Luật"); | |
ListViewItem.ListViewSubItem svktl = new ListViewItem.ListViewSubItem(ktl, "10.000 sinh viên"); | |
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