Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AutoCompleteEdit.SelectedItem Property

Gets or sets the item that is selected in the AutoCompleteEdit‘s drop-down list. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

#Declaration

C#
public object SelectedItem { get; set; }

#Property Value

Type Description
System.Object

The item that is selected in the AutoCompleteEdit‘s drop-down list.

#Remarks

The following image shows an item selected in the edit box of an AutoCompleteEdit:

DevExpress AutoCompeteEdit for MAUI - Selected item

After the selected item is changed, the editor’s SelectionChanged event is raised. Handle the event or execute the SelectionChangedCommand with SelectedItem as the command parameter to add custom logic when changing selected items.

If you use the ItemsSourceProvider property, the setter of the SelectedItem property only sets the value and does not change the visual state such as the DisplayText property or focused state. If you want to change the editor’s visual state, use Text property and Unfocus() method.

See Also