ASP.NET ComboBox - Multiple Rows and Columns with Icons



The items of the ComboBox can contain an icon next to the text.
The source of this image is specified using the ImageUrl property.

The icon of the selected item can be displayed in the input field of the ComboBox,
by setting the ShowSelectedImage property to true.

You can display icons for items even when the ComboBox is populated from a data source control.
In this case, the ImageUrl for each item can be set in the event handler of the ItemDataBound event.


The items can contain icons even when they are displayed on multiple rows and columns.



« Back to examples