BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
public class MyGridControl : GridControl { protected override void OnKeyDown(KeyEventArgs e) { Keys keyCode = e.KeyCode & Keys.KeyCode; bool controlKeyDown = (Control.ModifierKeys & Keys.Control) != Keys.None; GridRangeInfoList rangeList = this.Selections.GetSelectedRows(true, false); base.OnKeyDown (e); if(controlKeyDown && keyCode == Keys.X && rangeList.Count > 0) { this.Rows.RemoveRange(rangeList.ActiveRange.Top, rangeList.ActiveRange.Bottom); } } }
>public class MyGridControl : GridControl >{ > protected override void OnKeyDown(KeyEventArgs e) > { > Keys keyCode = e.KeyCode & Keys.KeyCode; > bool controlKeyDown = (Control.ModifierKeys & Keys.Control) != Keys.None; > GridRangeInfoList rangeList = this.Selections.GetSelectedRows(true, false); > base.OnKeyDown (e); > if(controlKeyDown && keyCode == Keys.X && rangeList.Count > 0) > { > this.Rows.RemoveRange(rangeList.ActiveRange.Top, rangeList.ActiveRange.Bottom); > } > } >} >