editing

Contains options that specify how grid content can be changed.

Type:

Object

dxDataGrid supports editing, insertion and the removing of grid values. The availability of performing a certain operation is specified by the allowUpdating, allowAdding and allowDeleting options.

Editing in dxDataGrid can be performed in four different modes. For a comprehensive overview of them, see the Row Mode, Batch Mode, Cell Mode and Form Mode articles.

See Also
  • For more information about editing settings you can configure, including both edit modes, refer to the Editing in UI topic.
  • To discover how to manage the editing process from code, see the Editing in Code topic.
NOTE
Before allowing a user to edit, insert and remove, make sure your data source supports all these actions.

View Demo

allowAdding

Specifies whether or not new grid records can be added at runtime.

Type:

Boolean

Default Value: false

allowDeleting

Specifies whether or not grid records can be deleted at runtime.

Type:

Boolean

Default Value: false

allowUpdating

Specifies whether or not grid records can be edited at runtime.

Type:

Boolean

Default Value: false

editEnabled

Deprecated

Use the allowUpdating option instead.

editMode

Deprecated

Use the mode option instead.

form

The form configuration object. Used only when the editing mode is "form".

Use the dataField option to link a form item with the corresponding grid column.

NOTE
The template and editorType dxForm options are not available to change through this option. Handle the editorPreparing or editorPrepared event to customize the form editors.

insertEnabled

Deprecated

Use the allowAdding option instead.

mode

Specifies how grid values can be edited manually.

Type:

String

Default Value: 'row'
Accepted Values: 'row' | 'batch' | 'cell' | 'form'

Editing grid values requires the allowUpdating option to be set to true.

For a comprehensive overview of available edit modes, refer to the Row Mode, Batch Mode, Cell Mode and Form Mode articles.

View Demo

removeEnabled

Deprecated

Use the allowDeleting option instead.

texts

Contains options that specify texts for editing-related grid controls.

Type:

Object

For detailed information on editing-related grid controls, see the Data Modification Controls topic.