コード例 #1
0
        public void showDuLieuNN()
        {
            gridViewNN.Rows.Clear();

            DataTable dt = ey.LoaddataNN(EmployeeManagement.UserID);

            foreach (DataRow d in dt.Rows)
            {
                int n = gridViewNN.Rows.Add();
                gridViewNN.Rows[n].Cells[0].Value = d["MaNhacNho"].ToString();
                gridViewNN.Rows[n].Cells[1].Value = d["NgayNhac"].ToString();
                gridViewNN.Rows[n].Cells[2].Value = d["TenNhacNho"].ToString();
                gridViewNN.Rows[n].Cells[3].Value = d["NoiDung"].ToString();
                gridViewNN.Rows[n].Cells[4].Value = d["MaCongTac"].ToString();
                gridViewNN.Rows[n].Cells[5].Value = d["NguoiGui"].ToString();
            }
            gridViewNN.Refresh();
            // labelTest.Text = EmployeeManagement.UserID;
        }