Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Gridview
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 3-May-12 22:53pm
gani77871.3K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Venkatesh Mookkan at 4-May-12 5:18am
   
Good answer!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please refer Link.
  Permalink  
Comments
Venkatesh Mookkan at 4-May-12 5:18am
   
Nice try. But I would suggest to use RowDataBound instead of RowCreated.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  

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

  Print Answers RSS
0 CHill60 240
1 Sarvesh Kumar Gupta 238
2 Sergey Alexandrovich Kryukov 193
3 DamithSL 153
4 OriginalGriff 138


Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 16 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid