Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxEditSettings.Enabled Property

Specifies whether an editor is enabled.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(true)]
[Parameter]
public bool Enabled { get; set; }

#Property Value

Type Default Description
Boolean true

true if the editor is enabled; false if the editor is disabled.

#Remarks

When the Enabled property is set to false, the editor does not respond to user interactions and users cannot change the editor’s value. In this mode, the editor cannot be focused or navigated.

Note that the Enabled property does not affect the editor displayed in the filter row. To hide the filter row editor, set the FilterRowEditorVisible property to false.

razor
<DxGrid Data="@products" PageSize="4"
        EditMode="GridEditMode.EditRow">
    <Columns>
        <DxGridCommandColumn />
        <DxGridDataColumn FieldName="ProductID" DisplayFormat="00000">
            <EditSettings>
                <DxSpinEditSettings Enabled="false" />
            </EditSettings>
        </DxGridDataColumn>
        <DxGridDataColumn FieldName="ProductName" />
        <DxGridDataColumn FieldName="UnitPrice"  DisplayFormat="c" />
        <DxGridDataColumn FieldName="UnitsInOrder" />  
    </Columns>
</DxGrid>

Disabled Editor

To disable or enable an editor at runtime, use the IEditSettings.Enabled property instead.

#Implements

See Also