Hi guys,
I stuffed around with this for a whole day, searching the groups
and trying different methods. So when I finally came up with a solution
I thought I would share it, as it could save someone all the stuffing
round I had to do. Now I don't know if this will solve everyone's
listview copy situation, but it worked for me.
Here is the code:
ListViewItems[] LVIARRY_CopiedL istViewItems = new
ListViewItems[LV_FirstListVie w.Items.Count];
for (int INT_Count=0; INT_Count < LVIARRY_CopiedL istViewItems.Le ngth;
INT_Count++)
{
LVIARRY_CopiedL istViewItems[INT_Count] =
(ListViewItem)L V_FirstListView .Items[INT_Count].Clone();
}
LV_SecondListVi ew.Items.AddRan ge(LVIARRY_Copi edListViewItems );
Scott.