private void dataGridView_KeyUp(object sender, KeyEventArgs e) { if (e.KeyData.Equals(Keys.Delete)) DeleteButton_Click(sender, e); }