How can I apply a css style to certain rows in a gridview?
The gridview has a date column called latest, and I am going to compare that to Now() with a helper function. If the latest date is less then now, then I would like to apply a style to it.
Here is my function
Public Function PastDue(ByVal latest As Date) As String
Dim now As Date = Date.Now
Dim cssStyle As String = String.Empty
If latest < now Then
cssStyle = "pastdue"
Where and how in the gridview do I apply it?