Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set the background color of each item in a dropdown list
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00706366
Message ID:
00707514
Views:
18
I am not sure if this will work with ASP.NET control but it works for HTML dropdown control.
<SELECT style="WIDTH: 211px">
 <OPTION value="A" selected>A</OPTION>
 <OPTION value="B" style="BACKGROUND-COLOR: blue">B</OPTION>
>Jayesh,
>
>Sorry - webform.
>
>Have any examples of that?
>
>Doug
>
>>Winform or Webform?
>>
>>If it's a winform, get ready to do some serious GDI manipulations...here is a link that will help..
>>
>>http://www.codeproject.com/cs/miscctrl/vsnetcombobox.asp
>>
>>All,
>>
>>I have a DropDownList which will be will hold the names of Pantone Colors for printing. How can I change the background color of each column in the dropdown to correspond to color it represents? Am I able to do this? The values of the Pantone colors are 6 character hex strings.
>>
>>Thanks,
>>Doug
>Jayesh Patel, MCSD
>Hackensack NJ.
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform