windowsforms-devexpress-dot-xtraeditors-dot-popupcontaineredit.md
Fires before closing the popup window enabling you to modify the edit value.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Events")]
public event QueryResultValueEventHandler QueryResultValue
<DXCategory("Events")>
Public Event QueryResultValue As QueryResultValueEventHandler
The QueryResultValue event's data class is QueryResultValueEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Value | Gets or sets the editor value. |
Handle the QueryResultValue event to update the editor’s value each time the popup window is closed. This lets you set the editor’s value based on the controls residing within the popup window.
The editor’s QueryResultValue event is equivalent to the RepositoryItemPopupContainerEdit.QueryResultValue event available via the editor’s Properties property, i.e. adding/removing an event handler for the current event actually affects the RepositoryItemPopupContainerEdit.QueryResultValue event.
Refer to the RepositoryItemPopupContainerEdit.QueryResultValue event description for more information.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the QueryResultValue event.
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.
winforms-create-editable-grid-lookup/CS/PopupContainerEditSelection/Form1.cs#L31
popupContainerEdit1.QueryDisplayText += new DevExpress.XtraEditors.Controls.QueryDisplayTextEventHandler(popupContainerEdit1_QueryDisplayText);
popupContainerEdit1.QueryResultValue += new DevExpress.XtraEditors.Controls.QueryResultValueEventHandler(popupContainerEdit1_QueryResultValue);
}
winforms-create-editable-grid-lookup/VB/PopupContainerEditSelection/Form1.vb#L24
AddHandler popupContainerEdit1.QueryDisplayText, New DevExpress.XtraEditors.Controls.QueryDisplayTextEventHandler(AddressOf popupContainerEdit1_QueryDisplayText)
AddHandler popupContainerEdit1.QueryResultValue, New DevExpress.XtraEditors.Controls.QueryResultValueEventHandler(AddressOf popupContainerEdit1_QueryResultValue)
End Sub
See Also