ASP.NET ComboBox - Item Templates
Alfreds Futterkistee555
Alfreds Futterkistee555
/
Germany
ALFKI
Ana Trujillo Emparedados y helados
Ana Trujillo Emparedados y helados
/
Mexico
ANATR
Antonio Moreno Taquería
Antonio Moreno Taquería
/
Mexico
ANTON
Around the Hornn
Around the Hornn
/
UK
AROUT
Berglunds snabbköp
Berglunds snabbköp
/
Sweden
BERGS
Blauer See Delikatessen
Blauer See Delikatessen
/
Germany
BLAUS
Blondel père et fils
Blondel père et fils
/
France
BLONP
Bólido Comidas preparadas
Bólido Comidas preparadas
/
Spain
BOLID
Bon app'
Bon app'
/
France
BONAP
Bottom-Dollar Markets
Bottom-Dollar Markets
/
Canada
BOTTM
The items of the ComboBox can be customized using templates. You can embed any content inside an item template,
including HTML markup and ASP.NET server controls (any control from the Obout suite may be added to a template).
In order to set up an item template, use the
ItemTemplate
property of the ComboBox.
To extract data from the data item, use the
Eval
method which expects as a parameter
the name of the data field from which to load the data.
« Back to examples