private void txtDatos_TextChanged(object sender, EventArgs e)
 {
     if (txtDatos.TextLength > 0)
     {
         DataTable dt = new DataTable();
         E.Nombres = txtDatos.Text;
         dt        = E.BuscarEmpleado(E.Nombres);
         try
         {
             dataGridView1.Rows.Clear();
             for (int i = 0; i < dt.Rows.Count; i++)
             {
                 dataGridView1.Rows.Add(dt.Rows[i][0]);
                 dataGridView1.Rows[i].Cells[0].Value = dt.Rows[i][0].ToString();
                 dataGridView1.Rows[i].Cells[1].Value = dt.Rows[i][1].ToString();
                 dataGridView1.Rows[i].Cells[2].Value = dt.Rows[i][2].ToString();
                 dataGridView1.Rows[i].Cells[3].Value = dt.Rows[i][3].ToString();
                 dataGridView1.Rows[i].Cells[4].Value = dt.Rows[i][4].ToString();
                 dataGridView1.Rows[i].Cells[5].Value = dt.Rows[i][5].ToString();
                 dataGridView1.Rows[i].Cells[6].Value = Convert.ToDateTime(dt.Rows[i][6].ToString()).ToShortDateString();
                 dataGridView1.Rows[i].Cells[7].Value = dt.Rows[i][7].ToString();
                 dataGridView1.Rows[i].Cells[8].Value = dt.Rows[i][8].ToString();
                 dataGridView1.Rows[i].Cells[9].Value = dt.Rows[i][9].ToString();
             }
             dataGridView1.ClearSelection();
             timer1.Stop();
         }
         catch (Exception ex)
         {
             DevComponents.DotNetBar.MessageBoxEx.Show(ex.Message);
         }
     }
     else
     {
         MostrarListadoEmpleados();
     }
 }