Skip to main content
All docs
V24.2

DxSpinEditSettings.MinValue Property

Specifies the minimum value that a user can enter in a spin editor.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(null)]
[Parameter]
public object MinValue { get; set; }

Property Value

Type Default Description
Object null

The minimum editor value. The value type should match the data type of values in the corresponding column.

Remarks

Use MinValue and MaxValue properties to specify a range of values available for selection in a spin editor.

@inject ProductService ProductData

<DxGrid Data="@products" ShowFilterRow="true" PageSize="4"
        EditMode="GridEditMode.EditRow">
    <Columns>
        <DxGridCommandColumn />
        <DxGridDataColumn FieldName="ProductID" >
            <EditSettings>
                <DxSpinEditSettings ShowSpinButtons="false" ReadOnly="true" />
            </EditSettings>
        </DxGridDataColumn>
        <DxGridDataColumn FieldName="ProductName" />
        <DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c" />
        <DxGridDataColumn FieldName="UnitsInOrder" >
            <EditSettings>
                <DxSpinEditSettings MinValue="12" MaxValue="48" Increment="6" />
            </EditSettings>
        </DxGridDataColumn>
    </Columns>
</DxGrid>

@code {
    private Product[]? products;
    protected override async Task OnInitializedAsync() {
        products = await ProductData.GetData();
    }
}

Spin Edit Extreme Values

To change the minimum spin editor value at runtime, use the ISpinEditSettings.MinValue property instead.

Implements

See Also