private void PresionarBotonBuscar(KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { BT_Buscar.PerformClick(); e.SuppressKeyPress = true; e.Handled = true; } }
private void ActualizarGridView() { int index = DGV_Muestra.SelectedRows[0].Index; TB_Desde.Text = ConfigurationManager.AppSettings["Fecha_Desde"]; TB_Hasta.Text = ConfigurationManager.AppSettings["Fecha_Hasta"]; BT_Buscar.PerformClick(); DGV_Muestra.CurrentCell = DGV_Muestra.Rows[index].Cells[1]; DGV_Muestra.Rows[index].Selected = true; }