We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show null in DateTimePickerExt?

Thread ID:





26899 Apr 4,2005 04:42 AM UTC Apr 4,2005 05:23 PM UTC WinForms 2
Tags: Tools
Frank Lin
Asked On April 4, 2005 04:42 AM UTC

I put a DatetimePickerExt on the form and bind it to underlying table: Me.dtpDate.DataBindings.Add(New Binding("text", ds.Tables("Order"), "In_Date")) If the bounded underlying "In_Date" field is DBNull, the DatetimePicerExt will show its default value instead of empty. Can I change it to show empty? Thanks.

Frank Lin
Replied On April 4, 2005 07:49 AM UTC

I also tried to bind it with "value": Me.dt_Date.DataBindings.Add(New Binding("value", ds.Tables("order"), "In_Date")) it doesn''t work either. Is there any method to manually set it to display empty?

Administrator [Syncfusion]
Replied On April 4, 2005 05:23 PM UTC

Hi Frank, DateTimePickerExt is obsolete and has been replaced by DateTimePickerAdv in our latest versions. What version are you using? In our newer versions, null values can be enabled in DateTimePickerAdv by setting EnableNullDate=true and choosing a NullString. You can then set it to null either by pressing Backspace while entering a date or by setting IsNullDate=true programatically. Regards, Gregory Austin Syncfusion Inc.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon