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

ImageComboBoxEdit.SelectItemByDescription(String) Method

Locates the first item with the specified description and selects it.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void SelectItemByDescription(
    string val
)

#Parameters

Name Type Description
val String

A string value that specifies the item description.

#Remarks

The SelectItemByDescription method locates the first ComboBoxItem with the specified ImageComboBoxItem.Description in the RepositoryItemImageComboBox.Items collection.

If the target item is found, it is selected by assigning its value (ComboBoxItem.Value) to the editor’s edit value (ImageComboBoxEdit.EditValue). If an item with the specified description is not found, the current selection is not changed.

See Also