Home All Groups Group Topic Archive Search About

the simplest way to move the data between two ListView control

Author
23 Nov 2004 6:15 AM
zbcong
hello
there are two ListViews with the SAME coloumns within one winform,i want to
move the data from one ListView into other one,what is the simplest method?

thank you!!

Author
23 Nov 2004 8:21 AM
Claes Bergefall
For Each item As ListViewItem In ListView1.Items
    ListView2.Items.Add(CType(item.Clone, ListViewItem))
Next

    /claes

Show quote
"zbcong" <congzhe***@capinfo.com.cn> wrote in message
news:O32VJPS0EHA.3808@tk2msftngp13.phx.gbl...
> hello
> there are two ListViews with the SAME coloumns within one winform,i want
to
> move the data from one ListView into other one,what is the simplest
method?
>
> thank you!!
>
>
>
>

AddThis Social Bookmark Button