Click here to Skip to main content
14,367,061 members
Rate this:
Please Sign up or sign in to vote.
See more:
I've a gridview with column datetime. I've a variable dt(datetime) which gets current system datetime.
I need to fetch the date from the gridview and if it is less than current date, that row's backcolor should change to some other color. Should change color for all rows which satisfies that condition .....
Posted
Comments
joshrduncan2012 29-Oct-13 10:35am
   
So what is your question?
Sriram Ramachandran 31-Oct-13 0:53am
   
I need to change the background color of the gridview row based on comparing current date and fetching date from the gridview. Is that possible ????? for eg:: current date is 31/10/2013 and date from gridview column is 25/10/2013. So fetched date is less than current date. So I need to change the rows which are less than current date to green background color.

1 solution

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




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