A newer version of this page is available. Switch to the current version.

ASPxSpinEdit.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.v18.2.dll


public bool AllowNull { get; set; }
Public Property AllowNull As Boolean

Property Value

Type Default Description


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


This property is a wrapper of the SpinEditProperties.AllowNull property.


This example demonstrates how the ASPxSpinEdit's null values accepting behavior can be customized.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" 
Inherits="_Default" %>
<%@ Register assembly="DevExpress.Web.v8.3, Version=, Culture=neutral, 
PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

<script runat="server">

 <html xmlns="" >
 <head id="Head1" runat="server">
     <title>Accepting Null Values</title>
     <form id="form1" runat="server">
         <table border="0" cellpadding="0" cellspacing="20"><tr>
                 <dxe:ASPxSpinEdit ID="ASPxSpinEdit1" runat="server" Number="10" />
             <dxe:ASPxSpinEdit ID="ASPxSpinEdit2" runat="server" AllowNull="False" Number="10" />
See Also