private void textLName_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Up | e.KeyCode == Keys.Down) { gridMain_KeyDown(sender, e); } gridMain.Refresh(); }