private void txtSearch_TextChanged(object sender, EventArgs e) { List <ThongTinKhachHang> lst = funcTK.timTaiKhoan(txtSearch.Text); if (lst != null) { thongTinKhachHangBindingSource.Clear(); foreach (ThongTinKhachHang item in lst) { thongTinKhachHangBindingSource.Add(item); } } }
private void loadTimTaiKhoan() { List <ThongTinKhachHang> lst = funcTK.timTaiKhoan(txtSearch.Text); if (lst != null) { thongTinKhachHangBindingSource.Clear(); foreach (ThongTinKhachHang item in lst) { thongTinKhachHangBindingSource.Add(item); } } }