LookUpEditBase.SelectedIndex Property

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

Namespace: DevExpress.Xpf.Editors

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


public int SelectedIndex { get; set; }

Property Value

Type Description

An integer value that specifies the index of the selected item. -1 if there is no selected item.


To obtain the selected item, use the LookUpEditBase.SelectedItem property. Each time the selected item is changed, the LookUpEditBase.SelectedIndexChanged event is raised.

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

See Also