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

GridDataBoundGrid Delete of multiple cells

Thread ID:

Created:

Updated:

Platform:

Replies:

11649 Mar 12,2004 08:21 AM Mar 12,2004 12:46 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 12, 2004 08:21 AM

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

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

CONFIRMATION

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.

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.

;