private void HeaderView_KeyDown(object sender, KeyEventArgs e) { try { if (e.KeyCode == Keys.Down) { if (HeaderView.IsFilterRow(RowHandle)) { HeaderView.ShowFilterEditor(Column); } } if (e.Modifiers == Keys.Control && e.KeyCode == Keys.N) { btnNew_ItemClick(null, null); } if (e.KeyCode == Keys.Delete) { btnDelete_ItemClick(null, null); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void HeaderView_CustomRowCellEdit(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e) { try { if (HeaderView.IsFilterRow(e.RowHandle)) { e.RepositoryItem = new RepositoryItemTextEdit(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }