The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is there any way that I can prevent a grid from clearing the contents of grid cells, when the user selects multiple cells at once and presses the delete key. I would still like to have the functionality where the row is deleted when the user clicks on column 0 of a row and them presses delete. I do not want empty cells to be displayed.
ADAdministrator Syncfusion Team March 12, 2004 02:16 PM UTC
Try handling the ClearingCells event to see if this does what you need. (In a GridDataBoundGrid, ClearingCells is a member of grid.Model).
private void gridModel_ClearingCells(object sender, GridClearingCellsEventArgs e)
{
e.Handled = true;
e.Result = false;
}
ADAdministrator Syncfusion Team March 12, 2004 05:46 PM UTC
Thanks, that does what I wanted. However, I wish that there was some way to add the handler using the Designer.