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 OriginalGriff 205
1 Sergey Alexandrovich Kryukov 185
2 jlopez788 144
3 Rob Philpott 100
4 Prakriti Goyal 97
0 OriginalGriff 6,837
1 Sergey Alexandrovich Kryukov 5,559
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100