Skip to main content

RepositoryItemPopupContainerEdit.QueryResultValue Event

Fires when closing the popup window, enabling you to specify the editor’s value based on the state of controls residing within the popup.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event QueryResultValueEventHandler QueryResultValue

Event Data

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.

Remarks

Popup container editors let you display control(s) within their popup window. Hence, unlike other popup editors, it does not automatically assign the edit value when the end-user closes the dropdown window. Thus, you need to handle the QueryResultValue event to specify the edit value depending on the state of the controls displayed within the popup window. To specify the edit value, use the QueryResultValueEventArgs.Value parameter.

Note: the event is not raised if the popup window is closed discarding changes made in it. See the RepositoryItemPopupBase.CloseUp event description for the list of cases when changes are discarded.

You may need to perform reverse action - update the controls within the popup when the editor’s value changes. You may handle the RepositoryItem.EditValueChanged event for this purpose.

The editor’s PopupContainerEdit.QueryResultValue event is equivalent to the current event.

The following code snippets (auto-collected from DevExpress Examples) contain references 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.

See Also