ASP.NET ComboBox - Items with Icons
ShowSelectedImage="false"
USA
1
UK
2
Germany
3
France
4
Russia
5
India
6
Japan
7
China
8
ShowSelectedImage="true"
USA
1
UK
2
Germany
3
France
4
Russia
5
India
6
Japan
7
China
8
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.
« Back to examples