CodeSnip: Changing the Color of a List Item's Text at Run-Time with Visual Basic 2005
page 3 of 5
by Shaun Eutsey
Feedback
Average Rating: 
Views (Total / Last 10 Days): 24964/ 68

Changing the Style

By adding the "style" attribute to the list item, we are in effect changing the style on every member of the DropDownList as we are adding them.  Granted, this method will not work with data binding, but there is no performance benefit for data binding anyway.

As the next graphic illustrates, this method delivers the desired result.

Figure 1


View Entire Article

User Comments

Title: Thanks for the help!   
Name: mike
Date: 2009-07-14 9:07:21 AM
Comment:
Seriously saved me alot of time!
Title: Mr   
Name: Dean White
Date: 2008-01-25 4:44:26 AM
Comment:
You are a scolar and a Gentleman
Thank you.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-09-21 1:09:47 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search