예제 #1
0
 private void TB_Hasta_KeyDown(object sender, KeyEventArgs e)
 {
     PresionarBotonBuscar(e);
     if (e.KeyCode == Keys.Enter)
     {
         BT_Buscar.Focus();
     }
 }
예제 #2
0
 private void PresionarBotonBuscar(KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BT_Buscar.PerformClick();
         e.SuppressKeyPress = true;
         e.Handled          = true;
     }
 }
예제 #3
0
        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;
        }