The DevExpress ASP.NET MVC GridView allows you to build adaptive or responsive page layouts with ease. The grid can automatically resize or hide grid data when the browser window is resized. The layout behavior can be customized by using the SettingsAdaptivity property.
In adaptive mode, the GridView automatically changes its layout when the browser window inner width is less than or equal to the value specified by the SettingsAdaptivity.HideDataCellsAtWindowInnerWidth property. In this case, the grid content is reordered into one column containing adaptive detail rows. The column headers are displayed above the data.
In this demo, the GridView changes its layout when the browser window width is less than 780 pixels.
You can try GridView with a responsive layout in the Responsive Layout demo.
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 Components 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