Well I''m doing the removerange at the ClipboardCut event. The cut can happen with or without a keydown event so putting it in keydown won''t work, will it?
>How are you doing this? I derived the grid and used an OnKeyDownOverride to delete the selected rows when the user type ctl+X and the clipboard was not lost with that code.
>
>
>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);
> }
> }
>}
>