Re: Using Null in DateTimePickers
From: Tom Porterfield (tpporter_at_mvps.org)
Date: 08/27/04
- Next message: Gary Miller: "Data truncation inserting into an Oracle8.1.7 database"
- Previous message: Kevin Yu [MSFT]: "RE: SOAP serialization exception"
- In reply to: John Smith: "Using Null in DateTimePickers"
- Next in thread: Ignacio Machin \( .NET/ C# MVP \): "Re: Using Null in DateTimePickers"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 27 Aug 2004 09:26:35 -0400
John Smith wrote:
> Hey folks,
>
> I have a DateTimePicker control on my Windows Form. Whenever I either:
> a) Don't give it a value
> b) Set it's value to Null
> c) Set it's value to ""
> It makes the date today's date.
>
> I need it to be empty though. How do I make it empty? It represents a
> field in my database which legitimately can be null and so I can't show it
> as todays date.
>
> Thanks a lot for the help!
As Nicholas states, the DateTimePicker from MS does not support null.
There are third party controls that do. Infragistics
(www.infragistics.com) NetAdvantage Suite includes a calendar control
that supports null.
-- Tom Porterfield
- Next message: Gary Miller: "Data truncation inserting into an Oracle8.1.7 database"
- Previous message: Kevin Yu [MSFT]: "RE: SOAP serialization exception"
- In reply to: John Smith: "Using Null in DateTimePickers"
- Next in thread: Ignacio Machin \( .NET/ C# MVP \): "Re: Using Null in DateTimePickers"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|