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

BaseListBoxControl.FindItem(Object) Method

Returns the index of the specified item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public int FindItem(
    object item
)

#Parameters

Name Type Description
item Object

An object which represents an item whose index is returned.

#Returns

Type Description
Int32

An integer value which specifies the item’s position within the collection. -1 if the item isn’t found.

#Remarks

The FindItem method can be used when the list box is bound to a data source. Otherwise, this method returns -1.

See Also