Skip to main content
All docs
V23.2
.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.

DxGridModel Class

Exposes members of the underlying DxGrid component.

Namespace: DevExpress.ExpressApp.Blazor.Editors.Models

Assembly: DevExpress.ExpressApp.Blazor.v23.2.dll

NuGet Package: DevExpress.ExpressApp.Blazor

Declaration

public class DxGridModel :
    ComponentModelBase

Remarks

Use this class’ members to access properties and events of the underlying DxGrid component.

Access DxGrid Component Properties

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;
            }
        }
    }
}

Inheritance

Object
DevExpress.ExpressApp.Blazor.Components.Models.ComponentModelBase
DxGridModel
See Also