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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataBoundGrid Delete of multiple cells

Thread ID:





11649 Mar 12,2004 01:21 PM UTC Mar 12,2004 05:46 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On March 12, 2004 01:21 PM UTC

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.

Administrator [Syncfusion]
Replied On 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; }

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon