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
Property Value
Type | Description |
---|---|
DxGridModel | A |
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