Skip to main content
Tab

ASPxSpinEdit.MinValue Property

Gets or sets the editor’s minimum value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(typeof(decimal), "0")]
public decimal MinValue { get; set; }

Property Value

Type Default Description
Decimal "0"

A Decimal value representing the minimum value of the spin editor.

Remarks

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

Example

This example demonstrates how the ASPxSpinEdit can be customized to accept only the specified range of values.

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
</script>

 <html xmlns="http://www.w3.org/1999/xhtml" >
 <head id="Head1" runat="server">
     <title>Minimum and Maximum Allowed Values</title>
 </head>
 <body>
     <form id="form1" runat="server">
     <div>
         <br/>
         <table cellpadding="4" cellspacing="0" border="0"><tr>
             <td><asp:Label ID="Label1" runat="server" Text="Year: " 
                    AssociatedControlID="ASPxSpinEdit1"/></td>
             <td><dxe:ASPxSpinEdit ID="ASPxSpinEdit1" runat="server" Number="1983" 
                    MaxValue="10000000000000000" /></td>
             <td><asp:Label ID="Label2" runat="server" Text="Month: " 
                    AssociatedControlID="ASPxSpinEdit2"/></td>
             <td><dxe:ASPxSpinEdit ID="ASPxSpinEdit2" runat="server" Number="12" 
                    MaxValue="12" MinValue="1" /></td>
             <td><asp:Label ID="Label3" runat="server" Text="Day: " 
                     AssociatedControlID="ASPxSpinEdit3"/></td>
             <td><dxe:ASPxSpinEdit ID="ASPxSpinEdit3" runat="server" Number="18" 
                    MaxValue="31" MinValue="1" /></td>
         </tr></table>
     </div>
     </form>
 </body>
 </html>
See Also