[RESOLVED] Data from listview to be loaded to another listview but different forms.
Hello everyone..I am having a problem regarding to pass all the data on the listview from one form to another and add another columns. The purpose of my columns is that I want to put text from there because I am sending a mail but I want to get the status of my message if it failed or send and write it at every end of the rows.
Re: Data from listview to be loaded to another listview but different forms.
In what sense are you having trouble? You simply get the data out of the first ListView, pass it to the second form and then add it to the second ListView. What part of the process is giving you pause?
Re: Data from listview to be loaded to another listview but different forms.
Hello jm.. Hmmm I am having trouble on how to pass that data exactly what is the data from listview of the firstform. But anyway I got it already..
I use..
Dim itemClone As ListViewItem
Dim coll As ListView.ListViewItemCollection = listView1.Items
For Each item As ListViewItem In coll
itemClone = TryCast(item.Clone(), ListViewItem)
listView1.Items.Remove(item)
listView2.Items.Add(itemClone)
Next
Thanks jm...
Re: [RESOLVED} Data from listview to be loaded to another listview but different form
If you're removing the items from the first ListView then why do you need the clone? Just move the items from one to the other.
Re: [RESOLVED} Data from listview to be loaded to another listview but different form
I did not remove actually the first listview jm. I remove already the listView1.Items.Remove and load another form. I will make a logs from it, but I have a problems making my log now jm on how to add a text to the every rows on existing data. This what I want, I have a mail program and I want to loop all emails on my listview. And now I want to put a text to the next column of every row if the message I send is successful and if it returns not successful the error will be add to the row.