We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridDataBoundGrid Delete of multiple cells

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.

2 Replies

AD Administrator 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; }


AD Administrator 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.

Loader.
Live Chat Icon For mobile
Up arrow icon