ZForge.Controls.XPTable.Models.RowCollection.Clear C# (CSharp) Method

Clear() public method

Removes all Rows from the collection
public Clear ( ) : void
return void
        public new void Clear()
        {
            if (this.Count == 0)
            {
                return;
            }

            for (int i=0; i<this.Count; i++)
            {
                this[i].InternalTableModel = null;
            }

            base.Clear();
            this.InnerList.Capacity = 0;

            if (owner != null)
                this.owner.OnRowRemoved(new TableModelEventArgs(this.owner, null, -1, -1));

            else if (rowowner != null)
                this.OnRowRemoved(new RowEventArgs(null, RowEventType.Unknown));
        }