Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using gridview which contains n rows and n columns.

I am displaying the data in the rows and columns.

I want to display particular cell in different color based on my condition.

For example,

A = 10 (Grid column3)
B = 15 (Grid column4)

When we compare the two values, then Maximum value cell should be highlighted in different color.

How to do this...?
Posted

 
Share this answer
 
Comments
Venkatesh Mookkan 4-May-12 5:18am    
Good answer!
Please refer Link.
 
Share this answer
 
Comments
Venkatesh Mookkan 4-May-12 5:18am    
Nice try. But I would suggest to use RowDataBound instead of RowCreated.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900