Skip to main content
A newer version of this page is available. .

ImageComboBoxEdit.SelectItemByDescription(String) Method

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

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