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?
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?
ADAdministrator Syncfusion Team April 4, 2005 12:23 PM
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.