I am trying to do conditional formatting with a date field and having issues. I can get it to work by using a text field.
I would like to capture a date field from the grid and check to see if it is over 10 days from the current date. I then want to change the color of the field to Red. I would like to make the entire row be red, but not sure what to use (ItemCreated, ItemInserted...)
Protected
Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs)
If (TypeOf e.Item Is Telerik.WebControls.GridDataItem) Then
Dim dataitem As Telerik.WebControls.GridDataItem = e.Item
If (dataitem("Name").Text) = "Test" Then
dataitem(
"Name").ForeColor = System.Drawing.Color.Red
End If
End If
End Sub
I would like to capture a date field from the grid and check to see if it is over 10 days from the current date. I then want to change the color of the field to Red. I would like to make the entire row be red, but not sure what to use (ItemCreated, ItemInserted...)