void ClearItemsWithSameListView ()
{
if (is_main_collection)
return;
int counter = list.Count - 1;
while (counter >= 0) {
ListViewItem item = list [counter] as ListViewItem;
// remove only if the items in group have being added to the ListView too
if (item.ListView == group.ListView) {
list.RemoveAt (counter);
item.SetGroup (null);
}
counter--;
}
}