public virtual void DetachObject() { if (Attachment != null) { _attachment.DetachFromParent(); _attachment.DetachedFromGrid(); _attachment = null; } }