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

Enable Row Delete in GGC

Thread ID:





62167 Jun 8,2007 05:35 PM UTC Jun 8,2007 06:03 PM UTC WinForms 1
Tags: GridControl
Tod Golding
Asked On June 8, 2007 05:35 PM UTC

How do I enable row deleting in the GGC? Do I have to have row selection enabled? Is this done through a right-click on the row header?

Madhankumar [Syncfusion]
Replied On June 8, 2007 06:03 PM UTC

Hi Tod,

Thank you for being patience.

This can be achieved by handling the TableControlKeyDown event. In the event, the current record can be retrieved and can be deleted from the record collections. The following is the code snippet. Please try it and let us know if you need any further assistance.

This code enables the record to be deleted by selecting record header and pressing DEL key.
++++++++ Code Snippet +++++++++++
void gridGroupingControl1_TableControlKeyDown(object sender, GridTableControlKeyEventArgs e)
if (e.Inner.KeyCode == Keys.Delete)
Record r = e.TableControl.Table.CurrentRecord;
if (r != null)
++++++++ Code Snippet +++++++++++

Have a nice day.

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