Exemplo n.º 1
0
 private void TextBox_Buscar_TextChanged(object sender, EventArgs e)
 {
     try
     {
         dataGridView1.DataSource = employee.FindByID(TextBox_Buscar.Text);
     }
     catch (Exception ex)
     {
         dataGridView1.DataSource = employee.GetAll();
         MessageBox.Show(ex.Message);
     }
 }