Skip to main content
All docs
V24.2

DxSpinEditSettings.ShowSpinButtons Property

Specifies whether spin buttons are visible.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
Boolean true

true to display spin buttons; false to hide spin buttons.

Remarks

Spin buttons allow a user to change the editor value by the Increment. Set the ShowSpinButtons property to false to hide the buttons.

<DxGrid Data="@products" 
        ShowFilterRow="true" 
        EditMode="GridEditMode.EditRow">
    <Columns>
        <DxGridCommandColumn />
        <DxGridDataColumn FieldName="ProductID" >
            <EditSettings>
                <DxSpinEditSettings ShowSpinButtons="false" ReadOnly="true" NullText="Type the ID" />
            </EditSettings>
        </DxGridDataColumn>
        <DxGridDataColumn FieldName="ProductName" />
        <DxGridDataColumn FieldName="UnitPrice" />
        <DxGridDataColumn FieldName="UnitsInOrder" />
    </Columns>
</DxGrid>

Spin Edit without Spin Buttons

To hide or display spin buttons at runtime, use the ISpinEditSettings.ShowSpinButtons property instead.

Implements

See Also