I am using VS 2008, I have a gridview on an aspx page, I am filling the gv with data, one of the columns is Order Date. I want to change the background color of this column depending on how old the order is.
So if the order is < 10 days it would be green,
if the order is 11 - 30 days it would be yellow anything older would be red.
Here is wh at I am trying but I am stuck...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim myorderdate As Date
For Each row As GridViewRow In GridView1.Rows
myorderdate = row.Cells.Item("OrderDate").Text
If myorderdate = Now() Then