Skip to main content
A newer version of this page is available. .

PopupContainerControl.OwnerEdit Property

Gets the PopupContainerEdit editor which displays the current popup control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[Browsable(false)]
public virtual PopupContainerEdit OwnerEdit { get; }

Property Value

Type Description
PopupContainerEdit

The PopupContainerEdit object displaying the current popup control; null (Nothing in Visual Basic) if the popup control is not associated with an editor.

Remarks

This property is useful especially for inplace editors. Container controls create editors on demand based on the corresponding repository items’ settings. Note: it is possible to specify the same repository item (editor type and settings) for several elements. In this case, it is convenient to use the OwnerEdit property to access the owning editor. For instance, you can call the editor’s PopupBaseEdit.ClosePopup or PopupBaseEdit.CancelPopup methods to close the dropdown window. Also, you can use the OwnerEdit property to access the current edit value.

Note: you should use the RepositoryItemPopupContainerEdit.PopupControl property to bind a popup control to a popup container editor.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OwnerEdit property.

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.

See Also