Category / Section
How to set null value in Silverlight DateTimeEdit control ?
1 min read
You can assign Null value to Date in DateTimeEdit by using IsEmptyDateEnabled property.
The following code examples explain how to assign Null value to Date in DateTimeEdit.
XAML
<syncfusion:DateTimeEdit x:Name="datetime" HorizontalAlignment="Center" VerticalAlignment="Center" IsEmptyDateEnabled="True" Height="30" Width="150"> </syncfusion:DateTimeEdit>
C#
datetime.IsEmptyDateEnabled = true;
The following screenshot displays the Null value in DateTimeEdit,