Exemplo n.º 1
0
        public void showDuLieuNV()
        {
            gridViewNV.Rows.Clear();

            DataTable dt = ey.LoadNVCanPH();

            foreach (DataRow d in dt.Rows)
            {
                int n = gridViewNV.Rows.Add();
                gridViewNV.Rows[n].Cells[0].Value = false;
                gridViewNV.Rows[n].Cells[1].Value = d["MaNhanVien"].ToString();
                gridViewNV.Rows[n].Cells[2].Value = d["ID"].ToString();
                gridViewNV.Rows[n].Cells[3].Value = d["MaCapQuanLi"].ToString();
                gridViewNV.Rows[n].Cells[4].Value = d["MaNguoiQuanLi"].ToString();
                gridViewNV.Rows[n].Cells[5].Value = d["CapDoNhac"].ToString();
            }
            gridViewNV.Refresh();
        }