public void RemoveControlFromSubItem(EXControlListViewSubItem subitem) { Control c = subitem.MyControl; for (int i = 0; i < this._controls.Count; i++) { if (((EmbeddedControl)this._controls[i]).MySubItem == subitem) { this._controls.RemoveAt(i); subitem.MyControl = null; this.Controls.Remove(c); c.Dispose(); return; } } }