private void Search() { string Lsp = (comboBox1.SelectedItem == null || comboBox1.SelectedItem.ToString().Equals("All"))?"":comboBox1.SelectedItem.ToString(); string Ncc = (comboBox2.SelectedItem == null || comboBox2.SelectedItem.ToString().Equals("All")) ? "" : comboBox2.SelectedItem.ToString(); List <Models.SanPham> lst = lstSanpham.Search(textBox1.Text, Lsp, Ncc); if (lst.Count > 0) { GridView_Sanpham.DataSource = lst; } else { MessageBox.Show("Danh sách trống"); } }