private void txtNomePesquisa_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up) { DataGriewSearch.Focus(); } }
private void txtNomePesquisa_KeyDown(object sender, KeyEventArgs e) { //if(e.KeyCode == Keys.Enter) // { // PesquisaServico(); // } //else if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Up) { DataGriewSearch.Focus(); } else { PesquisaServico(); } }