Link to home
Start Free TrialLog in
Avatar of sah18
sah18Flag for United States of America

asked on

DropDownList control - is it possible for each item in dropdown list to show a color (BackgroundColor) instead of text?

I would like to have a dropdownlist (either ASP.NET control, or just HTML control), which shows colors instead of text.  Is this possible?
Avatar of GavinMannion
GavinMannion

I have gotten it to work once but I had to basically create my own dropdownlist control (inherited from the base control) and add my own attributes.

I no longer have that code unfortunately.

The easiest way would be to fake a drop down using javascript and divs.

Hope someone else knows a better way because I have been tempted to rewrite that control because I need the functionality but have been avoiding the hassle :)
ASKER CERTIFIED SOLUTION
Avatar of Ahmad1012
Ahmad1012

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sah18

ASKER

I appreciate your suggestions!