General information
Category:
The Mere Mortals .NET Framework
Title:
Binding to Date with Null allowed
I'm trying to allow the user to enter a date that may be null (i.e. no entry). The specific case is the termination date for an employee (I haven't installed the psychic module yet).
I tried the DateTimePicker, but when it appears it has a date (when it was added to the form) and I can't find any information on how to clear it. Changing it is no problem, but I can't figure out how to clear it.
My next guess was to use a MaskedEditBox, but it used the Date.ToString() method and got all sorts of interesting stuff.
I would really like to avoid hooking into the post-navigate to fill in a masked text box, then hook into the validate event and validate the data and store it into the proper column in the MM data object.
I think (hope) I'm missing something obvious.
Thanks,
Jeff
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only