473,395 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Multi Color DropDownList

Hi!!

I'd like to dessing a DropDownList with 20 colors different among them
and I don't want to appear the name of the color, only the color. The
20 color i'll take from a DatabBase, and on the value of the
DropDownList will be an Hexadecilmal number taken from the DatabBase.
How can I change the "style=background-color" for each Items.

Thaks All
Nov 22 '05 #1
5 2919
To the best of my knowledge, you will need to do an owner-drawn list to
achieve the desired results.

Richard Rosenheim
"David" <da**********@gmail.com> wrote in message
news:55**************************@posting.google.c om...
Hi!!

I'd like to dessing a DropDownList with 20 colors different among them
and I don't want to appear the name of the color, only the color. The
20 color i'll take from a DatabBase, and on the value of the
DropDownList will be an Hexadecilmal number taken from the DatabBase.
How can I change the "style=background-color" for each Items.

Thaks All

Nov 22 '05 #2
To the best of my knowledge, you will need to do an owner-drawn list to
achieve the desired results.

Richard Rosenheim
"David" <da**********@gmail.com> wrote in message
news:55**************************@posting.google.c om...
Hi!!

I'd like to dessing a DropDownList with 20 colors different among them
and I don't want to appear the name of the color, only the color. The
20 color i'll take from a DatabBase, and on the value of the
DropDownList will be an Hexadecilmal number taken from the DatabBase.
How can I change the "style=background-color" for each Items.

Thaks All

Nov 22 '05 #3
VK
Or create a field in the database and store the color name and display
accordingly on web site.

Kinda expensive idea since you would have store this information in db.

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #4
VK
Or create a field in the database and store the color name and display
accordingly on web site.

Kinda expensive idea since you would have store this information in db.

Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #5
I used the concept this guy wrote:

http://weblogs.asp.net/fmarguerie/ar...2/27/3103.aspx

Nov 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David | last post by:
Hi!! I'd like to dessing a DropDownList with 20 colors different among them and I don't want to appear the name of the color, only the color. The 20 color i'll take from a DatabBase, and on the...
3
by: Brian Henry | last post by:
I have two list boxes on my form... lstCanSend and lstRecipients... well then there are two buttons add and remove between them (your basic select and pick listing) which uses java script to move...
5
by: Luis Fajardo | last post by:
I'm expiriencing a basic HTML appearance problem with ASP.NET. Following a couple of sample tags to ilustrate my problem: <asp:TextBox id="txtWidthIssue" runat="server"...
17
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If...
1
by: Mike P | last post by:
Can anybody recommend a free multi-column dropdownlist control? Thanks, Mike *** Sent via Developersdex http://www.developersdex.com ***
7
by: =?Utf-8?B?UmVraGE=?= | last post by:
Hi, I am trying to change the font color for the items in a dropdownlist control at run time using ASP.NET 2.0. DropDownList1.Items.Attributes.Add("style", "color:red"); But when I run the...
1
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
0
by: Bogdan | last post by:
Hi, I'd like to have a page with DropDownList, GridView, FormView, and a list of label/value pairs. The GridView records will be filtered out on the selected value in the DropDownList. The...
0
by: asmx126453 | last post by:
Hey mensen I am having some big troubles here i tryd solving it myself with internet for 2 days but i kind fix it. Its about this i have a DotNet project that alrydi is online and working for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.