DataGrid / Editing / Inline Editing

Blazor DataGrid Example - Inline Editing

Loading Syncfusion Blazor Server Demos…

1 of 6 pages (70 items)

This sample demonstrates how to use inline editing mode in the DataGrid to perform CRUD operations directly within grid rows.

The Blazor DataGrid inline editing feature enables you to edit the currently selected record by changing its state to edit mode. You can perform the following CRUD operations:

  • Edit - Double-click a row or click the Edit toolbar button after selecting a row
  • Delete - Click the Delete toolbar button after selecting a row
  • Update - Click the Update toolbar button to save changes
  • Cancel - Click the Cancel toolbar button to discard changes

Configure CRUD operations using the GridEditSettings component. Define at least one column as a primary key using the GridColumn component's IsPrimaryKey property.

The available edit modes are:

  • Dialog - Edit in a modal dialog
  • Batch - Edit multiple records with batch save

In this demo, the GridEditSettings includes the ShowAddNewRow property, which displays a new blank row within the grid for convenient record addition.

By default, new rows are added at the top. Change this by setting the NewRowPosition to Bottom.

For more detailed information about inline editing, refer to the inline editing documentation.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE