protected virtual void CreateGroups(IEnumerable<OLVGroup> groups)
{
this.Groups.Clear();
// The group must be added before it is given items, otherwise an exception is thrown (is this documented?)
foreach (OLVGroup group in groups) {
group.InsertGroupOldStyle(this);
group.SetItemsOldStyle();
}
}