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

LookUpEditBase.SelectedItem Property

Gets or sets the currently selected item. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public object SelectedItem { get; set; }

#Property Value

Type Description
Object

An object that represents the currently selected item.

#Remarks

Use the LookUpEditBase.SelectedIndex property to select an item by its index.

If the editor represents a checked combo box, use the LookUpEditBase.SelectedItems property to obtain a collection of selected items. In this instance, if multiple items are selected, the SelectedItem property returns the first selected item.

See Also