PopupContainerControl.OwnerEdit Property

Gets the PopupContainerEdit editor which displays the current popup control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Browsable(false)]
public virtual PopupContainerEdit OwnerEdit { get; }
<Browsable(False)>
Public Overridable ReadOnly Property OwnerEdit As PopupContainerEdit

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.

See Also