问题描述
是否可以将listtview1 [column1]复制/移动到listtview2 [column5]?
LISTVIEW1
第1栏|第2栏|第3列|第4列|第5栏
苹果
橙色
芒果
番石榴
葡萄
LISTVIEW2
第1列|第2栏|第3列|第4列| column5
____________________________________Apple
____________________________________橙色
____________________________________芒果
____________________________________番石榴
____________________________________ Grape
Hi,
It''s possible to copy/move listtview1[column1] to listtview2[column5]?
LISTVIEW1
column 1 | column 2 | column3 | column4 | column 5
Apple
Orange
Mango
Guava
Grape
LISTVIEW2
column1 | column 2 | column3 | column4 | column5
____________________________________Apple
____________________________________Orange
____________________________________Mango
____________________________________Guava
____________________________________Grape
推荐答案
Dim item As ListViewItem = ListView.Items(2)
item.SubItems(4).Text = item.Text
For i As Integer = 0 To ListView1.Items.Count - 1
Dim item As ListViewItem = ListView1.Items(i)
item.SubItems.Add(1).Text = item.Text
Next
这篇关于将Listview1 Column1移动/复制到另一个Listview2 Column5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!