Version

Nullable Property (UltraTimeSpanEditor)

Returns or sets a boolean value indicating whether the control's Value property can be set to null via the user interface.
Syntax
'Declaration
 
Public Overrides Property Nullable As Boolean
public override bool Nullable {get; set;}
Example
This example sets the control up to support null values, and display a custom string when the value is null.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinEditors

    Private Sub MakeNullable()

        '	Set the Nullable property to true so that when
        '	the edit portion is cleared, the Text property returns
        '	Nothing rather than an empty string
        Me.UltraTextEditor1.Nullable = True

        '	Set the NullText property to "[none]" so that the user
        '	knows that the value is not set
        Me.UltraTextEditor1.NullText = "[none]"

        '	Initialize the value to Nothing
        Me.UltraTextEditor1.Text = Nothing

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

		private void MakeNullable()
		{
			//	Set the Nullable property to true so that when
			//	the edit portion is cleared, the Text property returns
			//	null rather than an empty string
			this.ultraTextEditor1.Nullable = true;

			//	Set the NullText property to "[none]" so that the user
			//	knows that the value is not set
			this.ultraTextEditor1.NullText = "[none]";

			//	Initialize the value to null
			this.ultraTextEditor1.Text = null;
		}
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