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

LookUpEdit.ItemIndex Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.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