Version

Nullable Property (UltraDateTimeEditor)

Returns or sets whether when the control's Value property can be set to null.
Syntax
'Declaration
 
Public Property Nullable As Boolean
public bool Nullable {get; set;}
Example
This example configures the control to support a null value

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinEditors

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        '	Set the Nullable property to true so the control's Value property
        '	can be set to Nothing
        Me.UltraDateTimeEditor1.Nullable = True

        '	Set the NullText property so the end user knows that there is
        '	no valid date selected
        Me.UltraDateTimeEditor1.NullText = "[no date selected]"

    End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinEditors;

		private void button1_Click(object sender, System.EventArgs e)
		{
			//	Set the Nullable property to true so the control's Value property
			//	can be set to null
			this.ultraDateTimeEditor1.Nullable = true;

			//	Set the NullText property so the end user knows that there is
			//	no valid date selected
			this.ultraDateTimeEditor1.NullText = "[no date selected]";
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also