コード例 #1
0
        private void timKiem()
        {
            sKeyword = txtSearch.Text.Trim();
            // List<KhachHangDTO> ListKhachHang = khachHangBUS.getListKhachHangByKey(sKeyword);
            DataTable data = ChucVuBUS.GetDataTableCV_ByKey(sKeyword);

            if (sKeyword == null || sKeyword == string.Empty || sKeyword.Length == 0)
            {
                this.LoadDanhSachChucVu();
            }
            else
            {
                dataGridViewChucVu.DataSource = data;
                dataGridViewChucVu.Refresh();
                dataGridViewChucVu.Update();
            }
        }