How to set a row of gridview different color

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?
 
C

Cowboy \(Gregory A. Beamer\)

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!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top