"Shawn Wildermuth (C# MVP)" <sw*********@newsgroup.nospama écrit dans le
message de news:
fc*************************@msnews.microsoft.com...
| How do I set a DateTime field to null ?
| Hence set the DateTimePicker to null?
|
| You can't really. You can assign DbNull, but DateTime is a valuetype,
therefore
| no null...
But, if you are using C# 2.0, you can use Nullable<DateTimewhich can be
set to null and you can detect that, setting the database to DbNull where
appropriate.
Joanna
--
Joanna Carter [TeamB]
Consultant Software Engineer