What is the purpose of the Nullable property. Regardless if it is set to True, the MinDate Property cannot be Null or Nothing and the DateTime Property cannot be Null or Nothing. So, how do you get the control to display nothing when the data field is Nullable and the current record has a Null value.
regards,
Rob
Hi Rob,
If Nullable is true, then the control should allow you to blank out the Value property. The DateTime property cannot be null, because it's of type DateTime, which is a struct and does not support nulls.
Hi Mike,
I kept getting the error " value cannot be set outside the range of the min/max value . . ." something like that. I found the problem was comming from the fact that the application is using business object class, where a null datetime property will carry a value of "1/1/001 12:00:00 AM" which, if I am not mistaken, is different the Infragistics minimum value for this datatype,
Anyway, I corrected the problem by putting a check for Year on in the code that loads the data into form controls.
If myClass.RevisionDate.Date.Year = 1 Then
myDateControl.Value=Nothing
Else
myDateControl.Value= MyClass.RevisionDate
End If
I could have put the code in the Class property declaration itself, but then the class cause problems elsewhere accross the solution.
Regards,