re:
if I do it row by row, how can I set the options for the items that I add?
What would stop you from assigning html text to surround the database items retrieved ?
Basically, you'd want to create an array of the colors you want to display,
and substitute the array's values in sequential writes.
Post the code you are using to retrieve the items.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"UJ" <fr**@nowhere.comwrote in message news:OB**************@TK2MSFTNGP02.phx.gbl...
Thanks. But I'm binding a table to the items. Even if I do it row by row, how can I set the
options for the items that I add?
"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:uw**************@TK2MSFTNGP05.phx.gbl...
>If what you want is like : http://asp.net.do/test/dropdowncolor.aspx
...all you need to do is add :
<option style="color: blue;">One</option>
...to your options.
Here's a handy list of HTML color names :
http://www.w3schools.com/html/html_colornames.asp
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"UJ" <fr**@nowhere.comwrote in message news:uS**************@TK2MSFTNGP03.phx.gbl...
>>Is there a way to have items in a drop down list where certain items are a different color?
How about having items that are strikethrough?
TIA - Jeff.