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.
Syncfusion Feedback

Enable Row Delete in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

62167 Jun 8,2007 05:35 PM UTC Jun 8,2007 06:03 PM UTC Windows Forms 1
loading
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)
r.Delete();
}
}
++++++++ Code Snippet +++++++++++

Have a nice day.

Best regards,
Madhan

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.

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

;