BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void button1_Click(object sender, System.EventArgs e) { if(this.gridGroupingControl1.Table.CurrentRecord != null) this.gridGroupingControl1.Table.CurrentRecord.Delete(); }
>private void button1_Click(object sender, System.EventArgs e) >{ > if(this.gridGroupingControl1.Table.CurrentRecord != null) > this.gridGroupingControl1.Table.CurrentRecord.Delete(); >} >Hi, I use the delete button on the keyboard to delete a single row i.e. the user clicks the row they want to delete and then press the delete button on the keyboard.
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(); } }