Grid Editing - Edit Modes

Edit Mode:

Drag a column header here to group by that column
#
Contact Name
Company Name
City
Region
Country
EditMaria AndersAlfreds FutterkisteBerlin Germany
 Ana TrujilloAna Trujillo Emparedados y heladosMéxico D.F. Mexico
Contact Name
Company Name
City
Region
Country
UpdateCancel
EditAntonio MorenoAntonio Moreno TaqueríaMéxico D.F. Mexico
EditThomas HardyAround the HornLondon UK
EditChristina BerglundBerglunds snabbköpLuleå Sweden
EditHanna MoosBlauer See DelikatessenMannheim Germany
EditFrédérique CiteauxBlondel père et filsStrasbourg France
EditMartín SommerBólido Comidas preparadasMadrid Spain
EditLaurence LebihanBon app'Marseille France
EditElizabeth LincolnBottom-Dollar MarketsTsawwassenBCCanada
Page 1 of 10 (91 items)
Prev
[1]
2
3
4
5
6
7
8
9
10
Next
Description
C#
VB
ASPX

This demo describes the ASPxGridView's built-in edit modes.

Use the 'Edit Mode' combo box to select the edit mode you desire.

The KeyFieldName property must be specified to enable data editing/inserting/deleting operations.

The following members can be used to manipulate data:

  • StartEdit() - starts editing.
  • UpdateEdit() - saves changes.
  • CancelEdit() - cancels changes.
  • AddNew() - adds a new row.
  • DeleteRow() - deletes a row.

To allow end-users to manipulate data, add a Command column to the view's Columns collection and specify which commands can be used by end-users. There are six command items:

  • New
  • Edit
  • Delete
  • Select
  • Update
  • Cancel

By default, a command item is represented by a link. It can also be represented by a button or image. Its representation is specified by the column's ButtonType property.