Skip to main content
All docs
V24.1
.NET 6.0+
  • The page you are viewing does not exist in the .NET Framework 4.5.2+ platform documentation. This link will take you to the parent topic of the current section.

DxGridListEditor.GridModel Property

Exposes members of the underlying DxGrid class.

Namespace: DevExpress.ExpressApp.Blazor.Editors

Assembly: DevExpress.ExpressApp.Blazor.v24.1.dll

NuGet Package: DevExpress.ExpressApp.Blazor

Declaration

public DxGridModel GridModel { get; }

Property Value

Type Description
DxGridModel

A DxGridModel object that you can use to access DxGrid settings.

Remarks

Use the DxGridListEditor.GridModel property to access grid component properties.

The code sample below demonstrates a controller in the Blazor project that changes a ColumnResizeMode property value.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Blazor.Editors;

namespace YourSolutionName.Blazor.Server.Controllers;
public class ColumnResizeModeViewController : ViewController<ListView> {
    protected override void OnViewControlsCreated() {
        base.OnViewControlsCreated();
        if (View.Editor is DxGridListEditor gridListEditor) {
            gridListEditor.GridModel.ColumnResizeMode =
                DevExpress.Blazor.GridColumnResizeMode.ColumnsContainer;
        }
    }
}

For more information about Component Models, refer to the following topic: Underlying Controls and Components Behind UI Elements (ASP.NET Core Blazor).

See Also