Search code examples
c#winformstelerikdatetimepicker

set DateTimePicker value to empty on form load


I'm using telerik Q3 2010 for winform, and I need to set DateTimePicker value to null on form load, I don't have NullableValue property to use it as mentioned here, because my control is from 2010 version, how can I do that using

 radDateTimePicker1.NullDate

I can't assign null value to it as it isn't nullable.


Solution

  • Fairly sure that you can do the following for that particular version:

    this.radDateTimePicker1.DateTimePickerElement.SetToNullValue();