Click here to Skip to main content
12,502,005 members (52,301 online)
Rate this:
 
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.5K
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Venkatesh Mookkan 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 16 Sep 2012
Copyright © CodeProject, 1999-2016
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