Editing (Experimental)


From version 0.2, Simple Blazor Grid has experimental support for inline editing of data. Editing is supported for both the enumerable data source and the entity framework data source on nearly all value/primitive types though the following limitations apply;


Limitations

  • Only works on properties (properties must have a setter)
  • Editing of enum values is not currently supported
  • Editing of nested properties is not supported

To enable editing for a given column, simply set Enabled="true" on the appropriate SimpleColumn<T> (Ensure that Editable is also set to true on the SimpleGrid as well). The data grid also provides an event callback in the form of OnItemEdited which will be invoked whenever an item with edits is saved. The table below demonstrates editing of table data as well as the callback


Id ⥯
Name ⥯
Price ⥯
InStock ⥯
Edit

No records!

Displaying Page: 1 of 0 (0 total records)

An error has occurred. This application may no longer respond until reloaded. Reload 🗙