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.
Unfortunately, activation email could not send to your email. Please try again.

How to show null in DateTimePickerExt?

Thread ID:

Created:

Updated:

Platform:

Replies:

26899 Apr 4,2005 12:42 AM Apr 4,2005 01:23 PM Windows Forms 2
loading
Tags: Tools
Frank Lin
Asked On April 4, 2005 12:42 AM

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 03:49 AM

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 01:23 PM

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.

CONFIRMATION

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.

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.

;