Assign Nullable Value

17 Jan 20251 minute to read

The null values can be set in SfNumericTextBox Value property, by setting AllowNull property value to true.

NOTE

By default, the property value is false.

  • C#
  • [C#]
    
    numericTextBox.AllowNull = true;

    Display the SfNumericTextBox with AllowNull

    Set Hint Text

    The WaterMark property can be used to provide a hint that helps the user to get started with their input. The watermark text is visible when value is empty or null.

  • C#
  • [C#]
    	
    numericTextBox.WaterMark = "Principal Amount";

    Display the SfNumericTextBox with WaterMark