Skip to main content

LookUpEdit.ItemIndex Property

Gets or sets the index of the selected row in the dropdown.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
public virtual int ItemIndex { get; set; }

Property Value

Type Description
Int32

The zero-based index of the selected row in the editor’s dropdown. -1 if no row is currently selected, or the data source is not specified.

Remarks

The ItemIndex property allows you to select a row by specifying its visual position in the editor’s dropdown.

The ItemIndex property value can be used to get the row’s values with the RepositoryItemLookUpEdit.GetDataSourceValue method.

See Also