BrightIdeasSoftware.ObjectListView.AddObjects C# (CSharp) Method

AddObjects() public method

Add the given collection of model objects to this control.

The added objects will appear in their correct sort position, if sorting is active (i.e. if LastSortColumn is not null). Otherwise, they will appear at the end of the list.

No check is performed to see if any of the objects are already in the ListView.

Null objects are silently ignored.

public AddObjects ( ICollection modelObjects ) : void
modelObjects ICollection A collection of model objects
return void
        public virtual void AddObjects(ICollection modelObjects)
        {
            if (this.InvokeRequired) {
                this.Invoke((MethodInvoker)delegate() { this.AddObjects(modelObjects); });
                return;
            }
            this.InsertObjects(this.GetItemCount(), modelObjects);
            this.Sort(this.LastSortColumn, this.LastSortOrder);
        }
ObjectListView