private void bt_tracuu_Click(object sender, EventArgs e) { string kw_bienso = tb_bienso.Text.Trim(); string kw_hieuxe = cb_hieuxe.Text.Trim(); string kw_chuxe = tb_chuxe.Text.Trim(); string kw_dienthoai = tb_dienthoai.Text.Trim(); string kw_ma = tb_ma.Text.Trim(); if ((kw_bienso == null || kw_bienso == string.Empty || kw_bienso.Length == 0) && (kw_hieuxe == null || kw_hieuxe == string.Empty || kw_hieuxe.Length == 0) && (kw_chuxe == null || kw_chuxe == string.Empty || kw_chuxe.Length == 0) && (kw_dienthoai == null || kw_dienthoai == string.Empty || kw_dienthoai.Length == 0) && (kw_bienso == null || kw_bienso == string.Empty || kw_bienso.Length == 0) && (kw_ma == null || kw_ma == string.Empty || kw_ma.Length == 0)) // tìm tất cả { List <HoSoDTO> listHoSo = hsBus.select(); this.loadData_Vao_GridView(listHoSo); } else { List <HoSoDTO> listHoso = hsBus.selectByKeyWord(kw_bienso, kw_hieuxe, kw_chuxe, kw_ma, kw_dienthoai); this.loadData_Vao_GridView(listHoso); } }