[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Collapse]Grid View
   [Expand]Product Information
    Getting Started
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Expand]Focus and Navigation
    [Collapse]Data Editing
      Edit Form
      Adding and Deleting Records
      Row Validation and Error Indication
      Edit Form Validation (Templates)
      Processing Custom Callbacks
      Batch Edit Mode
    [Expand]Data Shaping and Manipulation
    [Expand]Data Formatting
    [Expand]Master-Detail Relationship
     Appearance Customization
    ASPxGridView Designer
   [Expand]Visual Elements
   [Expand]Member Tables
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Data Editing

ASPxGridView provides five built-in edit modes that allow end-users to manipulate grid data. To specify one of these five modes, set the ASPxGridViewEditingSettings.Mode property to one of the following values.

  • Edit Form (ASPxGridViewEditFormEventArgs.EditForm) - Allows users to edit cell values in the Edit Form when the Edit button is clicked. Each edit cell corresponds to a data column and permits its value to be edited.

  • Edit Form and Display Row (GridViewEditingMode.EditFormAndDisplayRow) - This mode is similar to the Edit Form mode, but it displays the currently selected row above the edit form.

  • Popup Edit Form (GridViewEditingMode.PopupEditForm) - Allows user to edit cell values in the Popup Edit Form. In this mode, the ASPxGridView displays the Edit Cell in the Edit Form within the popup.

  • In-Line Editing (GridViewEditingMode.Inline) - Allows user to edit cell values in the In-Line Edit Row when the Edit button is clicked. This mode allows you to modify the value directly in the cell.

  • Batch (GridViewEditingMode.Batch) - Allows user to modify a batch of grid data on the client-side and to send it to the server in a single request. In this mode, the ASPxGridView maintains all user changes on the client side until a user saves or discards them.

To allow end-users to manipulate data in the edit modes mentioned above (except for the Batch edit mode), add a command column to the ASPxGridView.Columns collection, and specify which commands end-users can use. End-users can switch ASPxGridView to edit mode by clicking the Edit command. They can also use the ASPxGridView.StartEdit method to switch to edit mode programmatically. To switch ASPxGridView back to browse mode and to save all the changes, click the Update command or use the ASPxGridView.UpdateEdit method. To discard the changes, click the Cancel command or call the ASPxGridView.CancelEdit method.

You can prevent data edits, deletion and insertion using the ASPxGridDataSecuritySettings.AllowEdit, ASPxGridDataSecuritySettings.AllowDelete and ASPxGridDataSecuritySettings.AllowInsert properties, respectively.


To enable data edits, insertion and deletion operations, specify the ASPxGridBase.KeyFieldName property.

Expanded Concepts

Expanded Member Table

Expanded Task-Based Help

Expanded See Also

Is this topic helpful?​​​​​​​