Batch Edit

 
Courtesy Title First Name Last Name Title Home Phone City Birth Date Hire Date  
Ms.NancyDavolioSales Representative(206) 555-9857Seattle12/8/19785/1/2005
Dr.AndrewFullerVice President, Sales(206) 555-9482Tacoma2/19/19658/14/1992
Ms.JanetLeverlingSales Representative(206) 555-3412Kirkland8/30/19854/1/2002
Mrs.MargaretPeacockSales Representative(206) 555-8122Redmond9/19/19735/3/1993
Mr.StevenBuchananSales Manager(71) 555-4848London3/4/195510/17/1993
Mr.MichaelSuyamaSales Representative(71) 555-7773London7/2/198110/17/1999
Mr.RobertKingSales Representative(71) 555-5598London5/29/19601/2/1994
Ms.LauraCallahanInside Sales Coordinator(206) 555-1189Seattle1/9/19853/5/2004
Ms.AnneDodsworthSales Representative(71) 555-4444London1/27/198011/15/2004
Data grid with 9 rows and 9 columns
0 rows are selected

This demo implements batch data editing using our Blazor Grid's EditCell mode. Batch data editing allows users to accumulate changes in memory and post them to the database when desired.

When you create a new row or modify/delete an existing row in this demo, all changes are stored in memory. You can press Submit to apply all changes from memory (batch editing) to the underlying data source or press Revert to discard accumulated changes.

The CustomizeElement event handler highlights modified cells. The code checks whether a cell has unsaved changes and applies a custom CSS class.

The EditOnKeyPress property is used to start row editing once you begin typing.