How can I hide or collapse some group in ListView
?
I just add some items
contactListView.Items.Add(new ISIMlistViewItem(contact));
if (contact.availability == 6)
contactListView.Items[contact.identificator].Group = contactListView.Groups["offlineGroup"];
else
contactListView.Items[contact.identificator].Group = contactListView.Groups["onlineGroup"];
And I want to sometimes hide the offlineGroup
.
if (hideOffline == true)
{
// something like
contactListView.Groups["offlineGroup"].Hide();
// or
contactListView.Groups["offlineGroup"].Visible = false;
}
But I don't know how can I do that. Can I just collapse it and don't draw it or is there any possibility to hide it?