Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement