RepositoryItem.Disconnect(Object) Method

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public virtual void Disconnect(
    object connector
)
Public Overridable Sub Disconnect(
    connector As Object
)

Parameters

Name Type Description
connector Object

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

Remarks

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