Thursday, March 29, 2012

List Box and different color

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/defaul...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:
joteke@.aspalliance.com

"Alessandro" <gemini_two@.hotmail.com> kirjoitti viestiss
news:eNohrkhQDHA.2320@.TK2MSFTNGP12.phx.gbl...
> There is a way to give different color to listitems of a ListBox ?

0 comments:

Post a Comment