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

How to implement the multi-row editing feature in the GridView

$
0
0

UPDATED:

Starting with version 13.2, the GridView control offers the basic "Batch Editing Mode" functionality that allows accomplishing a similar task with less effort and does not require so much extra code. See the ASP.NET WebForms & MVC: GridView Batch Edit blog post to learn more about this new functionality.
Starting with version 14.1, the GridView control offers advanced "Batch Editing Mode" programming options.

You can find a standalone DB-independent solution in our Code Examples base at:
GridView - A simple Batch Editing implementation

If you have version v14.1+ available, consider using the built-in functionality instead of the approach detailed below.
If you need further assistance with this functionality, please create a new ticket in our Support Center.

This example demonstrates how to implement the multi-row editing feature using the GridView extension. The main idea is to save changed values in the JavaScript dictionary and pass this dictionary to the required action. It is necessary to use a custom ModelBinder in the action to convert passed data to the required dictionary object.

See also:
How to perform GridView instant updating using different editors in the DataItem template
GridView - How to implement batch update using the Ajax request
How to implement the multi-row editing feature in the ASPxGridView
IModelBinder Interface
ASP.NET MVC2 - Custom Model Binder Examples
jQuery.ajax()

Question Comments

Added By: saurabh seth at: 9/11/2013 5:15:50 AM    

i m planning to extend this implementation, is there any way to return back the errors(changes those failed validation) and display the errors (e.g. highlighting the erroneous cell).

Added By: Fabio Vassura at: 1/7/2014 8:15:48 AM    

What about creating ?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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