Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Show All Themes

External Edit Form

Product Name 
Quantity Per Unit 
Unit Price 
Units In Stock 
Edit DeleteChaiBeverages10 boxes x 20 bags$18.0039
Edit DeleteChangBeverages24 - 12 oz bottles$19.0017
Edit DeleteAniseed SyrupCondiments12 - 550 ml bottles$10.0013
Edit DeleteChef Anton's Cajun SeasoningCondiments48 - 6 oz jars$22.0053
Edit DeleteChef Anton's Gumbo MixCondiments36 boxes$21.350
Edit DeleteGrandma's Boysenberry SpreadCondiments12 - 8 oz jars$25.00120
Edit DeleteUncle Bob's Organic Dried PearsProduce12 - 1 lb pkgs.$30.0015
Edit DeleteNorthwoods Cranberry SauceCondiments12 - 12 oz jars$40.006
Edit DeleteMishi Kobe NikuMeat/Poultry18 - 500 g pkgs.$97.0029
Edit DeleteIkuraSeafood12 - 200 ml jars$31.0031
Page 1 of 8 (77 items)Prev12345678Next

This demo illustrates data editing options available to you when using the DevExpress MVC Grid View.

The MVC Grid View can include a column with links that execute Delete, Insert and Edit operations. The SetDataItemTemplateContent method is used to assign a specific template to the column. Editing data is performed within a specially designed page. This page contains the appropriate DevExpress editors for each Grid View column. Note that this demo also illustrates how model validation can be used together with DevExpress MVC Editors. The data model is decorated with custom validation attributes and both server-side and client-side validation code is added - allowing error messages to be automatically displayed in the browser near editors when client-side validation fails.

The ClientLayout method delegate is used to maintain the Grid View's state as a user navigates between the grid and the data edit page.

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).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos