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 09:16 AM
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 12:46 PM
Thanks, that does what I wanted. However, I wish that there was some way to add the handler using the Designer.