Пример #1
0
 private void txtSearchRecept_TextChanged(object sender, EventArgs e)
 {
     if (txtSearchRecept.Text.Trim().Equals(""))
     {
         BindingStatus = false;
         LoadData();
     }
     else
     {
         //  DataTable dt = ManagerDAL.FindBook(txtSearch.Text.Trim());
         listRecept            = ManagerDAL.FindRecept(txtSearchRecept.Text);
         dtRecept              = ManagerDAL.ToDataTable <Receptionist>(listRecept);
         dgvRecepts.DataSource = dtRecept;
         BindingStatus         = false;
         BindingData();
         dgvRecepts.Rows[0].Selected = true;
         //  dgvRecepts.DataSource = dt;
     }
 }