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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

disable Delete a row when delete key is pressed

Thread ID:





68658 Sep 26,2007 03:19 PM UTC Sep 27,2007 07:19 AM UTC WinForms 1
Tags: GridControl
Asked On September 26, 2007 03:19 PM UTC


I am using a DGBG, and I would like to disable the feature of deleting a row, when the delete key is pressed.

thanking you in advance,


Jeba S [Syncfusion]
Replied On September 27, 2007 07:19 AM UTC

Hi Raul,

Thank you for posting query to us.

There is a RowsDeleting event in a GridDataBoundGrid. You can use this to cancel the deleting of rows in a GridDataBoundGrid.

private void gridDataBoundGrid1_RowsDeleting(object sender, Grid.GridRowRangeEventArgs e)
if(MessageBox.Show("Delete this row", "", MessageBoxButtons.YesNo)== DialogResult.No)
e.Cancel = true;

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,


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