Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing GridView cell colour based on DropDownList selection

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
GB
I have a DropDownList control within a cell in a row in a GridView control on my web page.

Ideally what I want is that when a user changes the selection in the DropDownList control, the cell changes colour (i.e. maybe green) to indicate some further action needs to be taken - i.e. the 'Update' button/link should then be clicked - after which the cell colour is returned to it's original colour.

How can this be done?
 
yes, javascript is your best choice for this. I would also recommend a js library like jquery, prototype, or dojo to do most of the js work for you.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I guessed that javascript was the way to go with this.

Can anyone suggest how to make use of this in this example?

Thanks again.
 
start with a library: jquery, dojo, prototype and go from there. I would spike an html example first, then apply it to your webform.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top