The DevExpress ASP.NET MVC Grid View (GridView) allows you to build adaptive and responsive page layouts. The extension can automatically resize or hide grid data when the browser's width changes. The SettingsAdaptivity property allows you to specify how the layout changes in different cases.
This demo illustrates the GridView with a responsive layout (the AdaptivityMode property value is set to 'HideDataCells'). The column's MinWindth/MaxWidth properties allow you to specify a column's minimum and maximum widths. The column's width can be changed within the limits of these values depending on the grid's width. Use the AllowHideDataCellsByColumnMinWidth property to specify whether the grid should hide a column if its width is less than the MinWidth value.
In responsive mode, the grid automatically hides columns one by one when the browser window is resized. Each hidden row displays an ellipsis button you can click to expand a detail row.
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos