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); } }