Hi
My grid view is showing the details as per the search button.But I want the latest Date row ,to be colured to help the users identify the latest one.Can you please help? Iam using ASP.NET,VB.NET,SQL-2005
Hi
My grid view is showing the details as per the search button.But I want the latest Date row ,to be colured to help the users identify the latest one.Can you please help? Iam using ASP.NET,VB.NET,SQL-2005
This is something which should be googlable:
http://digitalcolony.com/2007/07/highlight-rows-and-columns-on-gridview.aspx
You have the ability to intercept the binding of each row, so half the problem is solved outside of the box. _OnRowDatabound works.
The only other part of the solution is getting the max date of the dates shown. You can do this with a second query in the query batch (to avoid a second database hit) or you can do this by looping through the data prior to binding.
When date == max date, you simply change the background color of the cells in the row, or whatever you desire.