J
John Smith
Hello all:
I am having some difficulty trying to bind some Date Time Picker
controls to a database that may have Null values in some of these
fields. I continue to get the following error:
"Object cannot be cast from DBNull to other types."
I have tried to manually set the values to a valid date but to no avail.
What is the best way to bind these date values to their corresonding
controls given that some may have null values in them?
Thanks,
- John -
I am having some difficulty trying to bind some Date Time Picker
controls to a database that may have Null values in some of these
fields. I continue to get the following error:
"Object cannot be cast from DBNull to other types."
I have tried to manually set the values to a valid date but to no avail.
What is the best way to bind these date values to their corresonding
controls given that some may have null values in them?
Thanks,
- John -