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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change colour in one Gridview cell. 1

Status
Not open for further replies.

fiat2

Programmer
Nov 26, 2002
104
US
Using ASP.NET 2.0 & VS 2005.

Is there a way to change the color of one cell of a gridview?
I'd like to change the colour of a cell in Column 2 depending on the value of a cell from column 1.

Any ideas?
 
You have to use the RowDataBound event. e refers to the row and you can get to the cell collection from there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top