XPTable.Models.Table.ClearAllRowControls C# (CSharp) Method

ClearAllRowControls() public method

Clears all the controls from the Controls collection except the scroll bars
public ClearAllRowControls ( ) : void
return void
        public void ClearAllRowControls()
        {
            int i = 0;
            while (i < this.Controls.Count)
            {
                if ((this.Controls[i] == this.hScrollBar) || (this.Controls[i] == this.vScrollBar))
                    i++;
                else
                    this.Controls.RemoveAt(i);
            }
        }
Table