Back to Devexpress

Data Editing

aspnetbootstrap-119554-card-view-data-editing.md

latest1.7 KB
Original Source

Data Editing

  • Aug 09, 2021
  • 2 minutes to read

The Bootstrap Card View provides three built-in edit modes that allow end-users to edit grid data. Use the ASPxCardViewEditingSettings.Mode property to specify the grid edit mode.

  • Edit Form

  • Popup Edit Form

  • Batch

End-users can switch the Bootstrap Card View to an edit mode by clicking the Edit command. Or use the ASPxCardView.StartEdit method to switch to an edit mode in code. To switch the Bootstrap Card View back to browse mode and save all changes made, click the Update command or use the ASPxCardView.UpdateEdit method. To discard the changes, click the Cancel command or call the ASPxCardView.CancelEdit method.

You can prevent data editing, deleting and inserting by using the BootstrapCardViewDataSecuritySettings.AllowDelete, BootstrapCardViewDataSecuritySettings.AllowDelete and BootstrapCardViewDataSecuritySettings.AllowInsert properties, respectively.

Note

To enable data editing, inserting and deleting operations, you must specify the ASPxGridBase.KeyFieldName property.

See Also

Online Demo: Editing