Enable Row Delete in GGC

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?

1 Reply

MA Madhankumar Syncfusion Team 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

Loader.
Up arrow icon