Assign Nullable Value

17 Jul 2020 / 1 minute to read

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


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