how can i copy selected items from one listview to another on button click..?? without any redundancy also can i give the option for multiple selection of items and adding them in a bulk without using the ctrl from keyboard?? making it user friendly can we use checkboxes and how will they work?? the code below is used to copy the enteries for the single slection of the item and also it gives the duplicate enteries on selecting that item again...please help me out to remove the flaws...
private void btn_Add_Click(object sender, EventArgs e)
{
CopySelectedItems(source_name, target_name);
}
private void CopySelectedItems(ListView source, ListView target)
{
foreach (ListViewItem item in source.SelectedItems)
{
target.Items.Add((ListViewItem)item.Clone());
}
}