If you only want to do it when your user clicks a row header cell and presses teh deletekey, then try handling this event.
private void gridGroupingControl1_TableControlKeyDown(object sender, GridTableControlKeyEventArgs e)
{
if(e.Inner.KeyCode == Keys.Delete)
{
if(this.gridGroupingControl1.Table.CurrentRecord != null)
this.gridGroupingControl1.Table.CurrentRecord.Delete();
}
}
If you want to do it from any cell in the row, then try handling this event.
private void gridGroupingControl1_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
{
if(e.Inner.KeyCode == Keys.Delete)
{
if(this.gridGroupingControl1.Table.CurrentRecord != null)
this.gridGroupingControl1.Table.CurrentRecord.Delete();
}
}