List Box and different color

  • Thread starter Thread starter Alessandro
  • Start date Start date
A

Alessandro

There is a way to give different color to listitems of a ListBox ?
 
Yes, it is, but needs a bit work as basically it would need to be done so
that every ListItem in the ListBox has custom style attributes. Those
attributes are then rendered at the HTML. Only problem is that this works by
default only in HtmlSelect control.

See:
http://support.microsoft.com/default.aspx?scid=kb;en-us;309338

So if you absolutely need ListBox, you would need to rewrite some
implementation for the control.

--
Teemu Keiski
MCP,Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

Email:
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top