BrightIdeasSoftware.ObjectListView.CreateGroups C# (CSharp) Method

CreateGroups() protected method

Do the actual work of creating the given list of groups
protected CreateGroups ( IEnumerable groups ) : void
groups IEnumerable
return void
        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();
            }
        }
ObjectListView