I have a procedure that runs in the ItemDataBound event for my grid. It's purpose is to color code a status field by checking the due date and today's date to see if the request is past due.
The due date is being displayed in a GridDateTimeColumn, however, NULL is a valid value in this field. There is no editing in this grid...it's for display purposes only.
I can't seem to figure out how to check in my code behind if there is a date in the GridDateTimeColumn or not. I tried to cast the field as a RadDatePicker using:
DirectCast(item("due_date").Controls(0), RadDatePicker)
but I get an error:
Specified argument was out of the range of valid values.
Parameter name: index
My code behind is in VB. Can you tell me how to check a GridDateTimeColumn for a null value in code behind? Thanks.
The due date is being displayed in a GridDateTimeColumn, however, NULL is a valid value in this field. There is no editing in this grid...it's for display purposes only.
I can't seem to figure out how to check in my code behind if there is a date in the GridDateTimeColumn or not. I tried to cast the field as a RadDatePicker using:
DirectCast(item("due_date").Controls(0), RadDatePicker)
but I get an error:
Specified argument was out of the range of valid values.
Parameter name: index
My code behind is in VB. Can you tell me how to check a GridDateTimeColumn for a null value in code behind? Thanks.