The DevExpress ASP.NET MVC Grid View (GridViewExtension) allows you to use the built-in form layout to arrange editors in the edit form. You can set the UseFormLayout property to false to disable the form layout. The EditFormLayoutProperties property provides access to settings that allow you to customize the embedded form layout settings at a grid level.
The grid stores form layout items in the MVCxGridViewFormLayoutProperties.Items collection. The items are associated with grid data columns (ColumnName). The EditFormLayoutCreated event allows you to customize the edit form items' visibility, caption and layout settings. You can use the FindLayoutItemOrGroup event's argument on the server to access the required layout item or group and then customize it. To do it on the client, use the GetEditFormLayoutItemOrGroup method.
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