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

External Edit Form

New
Product Name 
Category 
Quantity Per Unit 
Unit Price 
Units In Stock 
Discontinued 
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 DeleteIkuraSeafood12 - 200 ml jars$31.0031
Edit DeleteQueso CabralesDairy Products1 kg pkg.$21.0022
Page 1 of 8 (76 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.

Collapse/Expand
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