Change content of Drop Down List

Change text color of drop down list depending on item

Page 1 of 1

2 Replies - 2909 Views - Last Post: 05 August 2009 - 05:18 PM Rate Topic: -----

#1 s_kucksdorf  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 69
  • Joined: 12-May 09

Change content of Drop Down List

Post icon  Posted 05 August 2009 - 12:53 PM

Hello all,


I am stuck on something and need help with it. I have a webpage that load employees with their information (from a DB). I have the drop down list auto bind to a SqlDataSource. But what I want to happen is, when the Drop Down List is being filled the content be changed (just color change) depending on certain parts of the table (if they are still employed or not). So if there are 20 employees and employee 18 has been fired, their information shows up as red in the drop down list.. Is there any way to do this? Thanks!

Is This A Good Question/Topic? 1

Replies To: Change content of Drop Down List

#2 s_kucksdorf  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 69
  • Joined: 12-May 09

Re: Change content of Drop Down List

Post icon  Posted 05 August 2009 - 12:53 PM

Hello all,


I am stuck on something and need help with it. I have a webpage that load employees with their information (from a DB). I have the drop down list auto bind to a SqlDataSource. But what I want to happen is, when the Drop Down List is being filled the content be changed (just color change) depending on certain parts of the table (if they are still employed or not). So if there are 20 employees and employee 18 has been fired, their information shows up as red in the drop down list.. Is there any way to do this? Thanks!
Was This Post Helpful? 0
  • +
  • -

#3 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Change content of Drop Down List

Posted 05 August 2009 - 05:18 PM

You might try the following link for your answer.

http://www.codeproje...opDownList.aspx
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1