private void Search_TextBox_TextChanged(object sender, EventArgs e) { string column; switch (Search_ComboBox.Text) { case "Mã KH": { column = "MaKH"; break; } case "Tên KH": { column = "TenKH"; break; } case "CMND": { column = "CMND"; break; } case "Xuất Xứ": { column = "XuatXu"; break; } case "SĐT": { column = "SDT"; break; } default: { return; } } blKH = new BLKhachHang(); DataSet ds = blKH.TimKiem(column, Search_TextBox.Text); dtKH = new DataTable(); dtKH = ds.Tables[0]; dtKH.Columns.Remove("Hide"); dgvKH.DataSource = dtKH; }