N
Nathan Sokalski
I want to change the background color, font attributes, etc. of the choices
in my DropDownLists. When writing them using HTML SELECT and OPTION tags, I
can do something like the following:
<option
style="font-weight:bold;color:green;background-color
urple;">Displayed
Text</option>
but the ListItem Control does not have a Style property, which prevents me
from doing anything other than specifying the Text, Value, and Selected
properties. Is there any way to format the ListItem Control, such as some
kind of workaround (I know I could write my own Control that inherits
ListItem, but I have very little experience doing this, so I might do it in
the future, but for the moment I am looking for a workaround)?
in my DropDownLists. When writing them using HTML SELECT and OPTION tags, I
can do something like the following:
<option
style="font-weight:bold;color:green;background-color
Text</option>
but the ListItem Control does not have a Style property, which prevents me
from doing anything other than specifying the Text, Value, and Selected
properties. Is there any way to format the ListItem Control, such as some
kind of workaround (I know I could write my own Control that inherits
ListItem, but I have very little experience doing this, so I might do it in
the future, but for the moment I am looking for a workaround)?