Skip to main content
Tab

SpinEditProperties.AllowNull Property

Gets or sets a value that specifies whether the spin editor allows null values to be entered.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(true)]
public bool AllowNull { get; set; }

Property Value

Type Default Description
Boolean true

true if null values can be entered into the editor, otherwise, false.

Remarks

Use the AllowNull property to control whether null values can be entered into the spin editor by end-users.

If the AllowNull property is set to true end-users can enter null values into the spin editor by clearing its text. In this case, the editor’s ASPxSpinEdit.Value property is equal to null and the ASPxSpinEdit.Number property is set to the MinValue value.

If a spin editor’s AllowNull property is set to false it doesn’t accept null values.

Note

The AllowNull property synchronizes its value with the editor’s ASPxSpinEdit.AllowNull property.

See Also