I have been trying to figure this out. I keep getting an error on DateRcvReal if the cell is empty. I am comparing two fields by using <= and some of the DateRcvReal are empty cells which throws an error of Operator '<=' is not defined for type 'Date' and type 'DBNull' how do I get around this. Still new at VB.net
If e.VisibleIndex > -1 And e.DataColumn.FieldName.StartsWith("DateProm") Then
If IsDate(CType(sender, ASPxGridView).GetRowValues(e.VisibleIndex, New String() {"DatePromReal"})) Then
If (CType(sender, ASPxGridView).GetRowValues(e.VisibleIndex, New String() {"DatePromReal"}) <= CType(sender, ASPxGridView).GetRowValues(e.VisibleIndex, New String() {"DateRcvReal"})) Then
e.Cell.BackColor = Drawing.ColorTranslator.FromHtml("#F42121")
e.Cell.ForeColor = Drawing.Color.White
End If