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

AutoSuggestEdit.SuggestionChosen Event

Occurs when an end user selects a suggestion in the dropdown list and the editor accepts the selected value.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.2.dll

Declaration

public event EventHandler<AutoSuggestEditSuggestionChosenEventArgs> SuggestionChosen

Event Data

The SuggestionChosen event's data class is AutoSuggestEditSuggestionChosenEventArgs. The following properties provide information specific to this event:

Property Description
SelectedItem Gets the data item that corresponds to a chosen suggestion.

Remarks

Handle the SuggestionChosen event to display a custom text within the editor’s text box when an end user chooses an item.

Use the event arguments’ SelectedItem property to get the data item that corresponds to a chosen suggestion.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SuggestionChosen 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