Back to Devexpress

Lesson 3 - Post Changes to a Database

wpf-9647-controls-and-libraries-data-grid-getting-started-designer-lesson-3-post-changes-to-a-database.md

latest2.0 KB
Original Source

Lesson 3 - Post Changes to a Database

  • Oct 25, 2025
  • 2 minutes to read

This tutorial modifies data within the GridControl and saves changes to the database. The tutorial is based on Lesson 2.

The Items Source Wizard adds the post data functionality when you enable the CRUD (Create, Read, Update, Delete) operations.

The Items Source Wizard generates the following code:

  1. Sets the TableView.ShowUpdateRowButtons property to OnCellEditorOpen. The property enables edit mode that allows users to edit an entire row and then submit or cancel all changes simultaneously:

  2. Sets the TableView.NewItemRowPosition property to Top. The New Item Row allows users to add new rows to the GridControl:

  3. Creates the following commands that are generated at runtime from methods with the Command attribute. The generated command name follows the [MethodName]Command pattern:

See Also

Lesson 4 - Sort, Group, Filter Data

Lesson 5 - Display Summaries

Edit Entire Row