Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DevExpress-Examples/devextreme-datagrid-update-multiple-cells

Repository files navigation

DataGrid for DevExtreme - Update multiple cell values after selecting an item in a lookup column editor

This example demonstrates how to update multiple cell values after a user selects an item in the editor. In the example, when you select a new value in the "Name" column, the values in the "Address" and "Phone" columns also change.

Implementation Details

  • Define onEditorPreparing to override the built-in onValueChanged event handler for a lookup column editor.
  • Call the setValue method with the selectedItem option as a parameter to pass changes to the grid.
  • Define the setCellValue callback function in a lookup column and use the newData parameter to update adjacent cells. The value parameter represents an item you have selected.

Files to Review

Documentation

More Examples

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates how to update multiple cell values after a user selects an item in the editor.

Topics

Resources

Readme

License

View license

Stars

Watchers

Forks

Contributors