How to set a row of gridview different color

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I set a row of gridview different color when one value in the first column
if greater the the value in the second column.
How can I do?
 
Use the RowBinding event (click on the GridView, click the lighting bolt in
the Property explorer and then create an event name for RowDataBound). You
can then pull the current row off of e. You check contents of cell 0 and
cell 1 and if cell 1 is greater, change the color for the row.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 
Back
Top