Skip to main content

RepositoryItem.Disconnect(Object) Method

Removes the connection between the repository item and the specified object.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public virtual void Disconnect(
    object connector


Name Type Description
connector Object

An object representing the control from which the repository item is disconnected.


The Disconnect method is called by container controls to remove the connection between the repository item and a control’s element (a grid column, for instance). Calling this method decreases the RepositoryItem.LinkCount value by one. The repository item can only be deleted from a RepositoryItemCollection collection if it is not connected to any object (its RepositoryItem.LinkCount property value is 0).

See Also