Ejemplo n.º 1
0
        //lấy dữ liệu với quyền user
        public void LoadData()
        {
            try
            {
                dtqluser = new DataTable();
                dtqluser.Clear();
                DataSet ds = BLQLUser.LayNguoiDungUser(quyenhan);
                dtqluser = ds.Tables[0];
                // Đưa dữ liệu lên DataGridView
                dataGridView1.DataSource = dtqluser;
                panel1.Enabled           = false;
                mk.ResetText();
                Sua = false;
                tk.ResetText();
            }

            catch (SqlException)
            {
                MessageBox.Show("Không lấy được nội dung trong table taikhoan. Lỗi rồi!!!");
            }
        }