• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Theme Selection
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Batch Editing in ASP.NET MVC Data Grid Control

This sample demonstrates CRUD operations in Grid. You can perform CRUD operations as follows,

  • Add - To add new record, click Add toolbar button
  • Edit - To edit record, double click a cell
  • Delete - To delete record, click toolbar Delete button after selected a row
  • Update,Cancel - You can save or discard changes by click toolbar Update and Cancel button respectively
DEMO
SOURCE

The Grid supports CRUD operations. This CRUD operations can be configured in Grid using EditSettings. Also, it has different modes to manipulate the datasource.

The available modes are,

  • Inline
  • Dialog
  • Batch

In this demo, Batch mode is enabled for editing by defining EditSettings.Mode as Batch. You can start editing by double clicking a cell and can change the cell value. The edited cell will be highlighted while navigating to a new cell, so that you know which cells had been edited. You can bulk save the edited data to the datasource by click on the toolbar's Update button or by externally invoking the batchSave method.