RepositoryItem.Disconnect(Object) Method
Removes the connection between the repository item and the specified object.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
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).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Disconnect(Object) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.