private void txtSearch_TextChanged(object sender, EventArgs e) { if (txtSearch.Text != "") { if (cLogin.search == 0) { dataGridView1.DataSource = db.SearchDSMaSach(txtSearch.Text); } else if (cLogin.search == 1) { dataGridView1.DataSource = db.SearchDSTua(txtSearch.Text); } else { dataGridView1.DataSource = db.SearchDSMaNXB(txtSearch.Text); } } else { LoadData(); } }