Skip to main content
All docs
V24.2

DxGridDataColumn.DataRowEditorVisible Property

Specifies whether to render the editor associated with this column in the column edit cell, edit form, or pop-up edit form.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
Boolean true

true to render the column editor; false to hide the editor.

Remarks

The Grid component generates editors for columns based on associated data types and automatically displays these editors in the filter row and in data rows during edit operations. Set the column’s DataRowEditorVisible property to false to render display text instead of the editor in the column edit cell. To hide the filter row editor, set the FilterRowEditorVisible property to false.

The GetEditor(String) method allows you to get a column editor and place it in the edit or pop-up edit form. If the column’s DataRowEditorVisible property is set to false, the method returns an empty render fragment instead of the editor.

The following code snippet hides the editor assosiated with the Product ID column:

Hide Column Editor in the Edit Row

@inject ProductService ProductData

<DxGrid Data="@products"
        EditMode="GridEditMode.EditRow"
        EditorRenderMode="GridEditorRenderMode.Detached">
    <Columns>
        <DxGridCommandColumn />
        <DxGridDataColumn FieldName="ProductID" DataRowEditorVisible="false" />
        <DxGridDataColumn FieldName="ProductName" />
        <DxGridDataColumn FieldName="UnitPrice" />
        <DxGridDataColumn FieldName="UnitsInOrder" />
    </Columns>
</DxGrid>

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