Version

Editing Behavior Overview (WebDataGrid)

WebDataGrid™ is read-only by default. You must enable the EditingCore behavior to allow interaction with the control. After EditingCore is enabled you can edit WebDataGrid in code; however, if you want to allow your end-users to edit, delete, and add data using WebDataGrid’s UI, you must enable additional behaviors. These are all considered dependent behaviors specific to the user interaction. Once editing is enabled, data updates commit immediately to the data source.

Note
Note:

Set the DataKeyFields property to the name of the primary key column in your data source to ensure that changes in WebDataGrid can be updated in data source.

Dependent Behaviors

  • Cell Editing - Allows data manipulation in the cells of WebDataGrid. End-users are allowed to edit data when this behavior is enabled.

  • Row Editing - An editing experience that places the entire row in edit mode. Changes are saved and rejected using Done and Cancel buttons respectively.

  • Row Adding - Enabling this behavior creates an interface in which users can add new rows to WebDataGrid: A blank row is placed at the bottom or top of the control.

  • Row Deleting - Allows data deletion. To delete, end-users can select the row(s) and hit the Delete key.

  • Row Editing Template - Allows data manipulation of a row through a template that you create.

Note
Note:

These behaviors are all dependent on the EditCore behavior; when you remove the EditCore behavior, these behaviors will also get removed.

For more information on editing in WebDataGrid, click the links below.