Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

GridView - How to edit in memory data source

$
0
0

This example illustrates how to bind the MVC GridView Extension with an in memory datasource (List<T>) with enabled editing capabilities.

For Validation:
Make sure that you have met the following requirements:
- The Model's Properties have related Data Annotations attributes.
- The GridView's PartialView is wrapped with a form tag/container.
- The client-side/unobtrusive validation is enabled (for example, at the Web.config level).
- The related scripts are linked manually or loaded automatically by setting the embedRequiredClientLibraries configuration option to true.

See Also:
E3530: How to bind GridView with standard in-memory data sources (DataTable, List<T>)
E3998: GridView - How to specify a custom EditForm Template

Online Demo:
Edit Modes


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>