Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to return a null value from Date control?

0 views
Skip to first unread message

nologo

unread,
Jan 11, 2008, 4:44:41 AM1/11/08
to
Hi,

I wish to return a NULL value from a date control if no date is
selected. Anyone got any idea on how i would do this?

Cheers

Sascha Folville

unread,
Feb 12, 2008, 6:17:55 AM2/12/08
to

Hi Cheers,

I think, the only way is to create your own "nullable datecontrol".
You can see an example here:
http://www.codeproject.com/KB/selection/Nullable_DateTimePicker.aspx

Just wrap a class around the date-control and if the control is empty
you can return null or you implement a isNull()-method.

Hope it helps,

Sascha

0 new messages