DevExpress DateEdit shows 1/1/0001 should be blank

Posts   
 
    
HaulMark
User
Posts: 24
Joined: 11-Aug-2004
# Posted on: 17-Feb-2005 23:42:15   

Help!!

I'm using the devexpress DateEdit and it returns 1/1/0001 when I have a NULL SQL Server date. I've been able to stop it from displaying this date by setting the NULLDATE property but as soon as I enter the DateEdit the 1/1/0001 displays again. Is there anyone who knows how so have it show nothing.

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 18-Feb-2005 09:09:16   

By default all value typed fields which are NULL have a default value, date fields have datetime.minvalue as value. You should be able to set that as the nulldate in the control, or does hte control just react on DBNull.Value? (which I would find really odd, as every datetime typed field will have a value in .NET )

Frans Bouma | Lead developer LLBLGen Pro