Back to Devexpress

PopupContainerControl.OwnerEdit Property

windowsforms-devexpress-dot-xtraeditors-dot-popupcontainercontrol.md

latest2.6 KB
Original Source

PopupContainerControl.OwnerEdit Property

Gets the PopupContainerEdit editor which displays the current popup control.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
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

PopupControl

PopupContainerProperties

PopupContainerControl Class

PopupContainerControl Members

DevExpress.XtraEditors Namespace