private void ProcessKey(KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { CompleteSelected(); HidePopup(); e.Handled = true; } else if (e.KeyCode == Keys.Up) { ShowPopup(); if (IsLoopSelection && gridView.FocusedRowHandle == 0) { gridView.MoveLastVisible(); } else if (gridView.GetSelectedRows().Length == 0) { gridView.MoveFirst(); } else { gridView.MovePrev(); } e.Handled = true; } else if (e.KeyCode == Keys.Down) { ShowPopup(); if (IsLoopSelection && (gridView.RowCount - 1 == gridView.FocusedRowHandle)) { gridView.MoveFirst(); } else if (gridView.GetSelectedRows().Length == 0) { gridView.MoveFirst(); } else { gridView.MoveNext(); } e.Handled = true; } else if (e.KeyCode == Keys.Delete) { CleanStatus(); e.Handled = true; } }