T
Tim Ebert
How do you programmatically set the color of individual list items in a dropdownlist using VB.NET? I have a bound dropdownlist on a web form with about 40 items and there our certain items in the list that need to be a different color. I've tried several things but nothing seems to work. This code snippet works with the HTMLSelect control but not the asp dropdownlist.
ddl.Items(1).Attributes.CssStyle.Item("color") = "Red"
Any input would be greatly appreciated. Thanks.
ddl.Items(1).Attributes.CssStyle.Item("color") = "Red"
Any input would be greatly appreciated. Thanks.