Exemplo n.º 1
0
        private void btnTimKiem_Click(object sender, EventArgs e)
        {
            this.dgvTaiKhoan.SelectionChanged -= new EventHandler(this.dgvTaiKhoan_SelectionChanged);
            DataTable dataSource = ManageBase.SearchNguoiDungRDT(this.txtSearchUser.Text.Trim(), this.txtSearchHoTen.Text.Trim());

            this._bindingTaiKhoan.DataSource = dataSource;
            bool flag = this.dgvTaiKhoan.Rows.Count > 0;

            if (flag)
            {
                this.dgvTaiKhoan.Rows[0].Selected = true;
            }
            this.dgvTaiKhoan.SelectionChanged += new EventHandler(this.dgvTaiKhoan_SelectionChanged);
            bool flag2 = this.dgvTaiKhoan.Rows.Count > 0;

            if (flag2)
            {
                this.FillData(0);
            }
        }