Пример #1
0
 private void BtnSearch_Click(object sender, EventArgs e)
 {
     if (txtSearch.Text == "")
     {
         dgvSanPham.DataSource = db.InfoSach();
     }
     else
     {
         dgvSanPham.DataSource = db.Search_table(txtSearch.Text);
     }
 }