第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

C#winform GridView問題請教

C#winform GridView問題請教

C#
WentworthPeach 2017-05-14 07:59:47
我想把回傳的學(xué)生的選課情況表顯示出來,為何顯示不出來,求大佬指點(diǎn),代碼如下:這是gridview空間部分:? protected void Form1_Load(object sender, EventArgs e)? ? ? ? {? ? ? ? ? ? Student stuobj = new Student();? ? ? ? ? ? string StuNo = stuobj.StuNo;? ? ? ? ? ? StuChoiceLessonHandle obj = new StuChoiceLessonHandle();? ? ? ? ? ? obj.SetStuChoiceLessonName(StuNo);? ? ? ? ? ? List<StuLessonUI> scllist=obj.GetStuChoiceLessonNameList();? ? ? ? ? ? dataGridView1.DataSource = scllist;? ? ? ? }這是寫在StuChoiceLessonHandle 類中的部分:public void SetStuChoiceLessonName(string StuNo)? ? ? ? {? ? ? ? ? ? //取得自己數(shù)據(jù)表相關(guān)的資訊,取的全部資料? ? ? ? ? ? SetStuChoiceLessonInfo();? ? ? ? ? ? List<StudentChoiceLessonRef> objList = GetStuChoiceLessonList();? ? ? ? ? ? //準(zhǔn)備「課程」全部資料? ? ? ? ? ? LessonHandle objLessonHandle = new LessonHandle();? ? ? ? ? ? objLessonHandle.SetLessonInfo();? ? ? ? ? ? List<Lesson> objLessonList = objLessonHandle.GetLessonList();? ? ? ? ? ? //準(zhǔn)備「學(xué)生」全部資料? ? ? ? ? ? StudentInfoHandle objStudentandle = new StudentInfoHandle();? ? ? ? ? ? objStudentandle.SetStudentInfo();? ? ? ? ? ? List<Student> objStudentList = objStudentandle.GetStudentList();? ? ? ? ? ? //準(zhǔn)備「老師」全部資料? ? ? ? ? ? TeacherHandle objTeacherHandle = new TeacherHandle();? ? ? ? ? ? objTeacherHandle.SetTeacherInfo();? ? ? ? ? ? List<Teacher> objTeacherList = objTeacherHandle.GetTeacherList();? ? ? ? ? ? var result = from p in objList? ? ? ? ? ? ? ? ? ? ? ? ?join le in objLessonList on p.LessonID equals le.LessonID? ? ? ? ? ? ? ? ? ? ? ? ?join s in objStudentList on p.StuNo equals s.StuNo? ? ? ? ? ? ? ? ? ? ? ? ?join t in objTeacherList on le.TeacherID equals t.TeacherEmployeeID? ? ? ? ? ? ? ? ? ? ? ? ?where s.StuNo == StuNo //條件:找出一名學(xué)生的課程數(shù)據(jù)? ? ? ? ? ? ? ? ? ? ? ? ?select new StuLessonUI? ? ? ? ? ? ? ? ? ? ? ? ?{? ? ? ? ? ? ? ? ? ? ? ? ? ? ?StuName = s.StuName,? ? ? ? ? ? ? ? ? ? ? ? ? ? ?LessonName = le.LessonName,? ? ? ? ? ? ? ? ? ? ? ? ? ? ?TeacherName = t.TeacherName,? ? ? ? ? ? ? ? ? ? ? ? ? ? ?CRoom = s.CRoom,? ? ? ? ? ? ? ? ? ? ? ? ? ? ?//StuNo = s.StuNo? ? ? ? ? ? ? ? ? ? ? ? ?};? ? ? ? ? ? StuChoiceLessonNameList = result.ToList();? ? ? ? ? ? if (StuChoiceLessonNameList.Count > 0)? ? ? ? ? ? ? ? StuChoiceLessonNameObj = StuChoiceLessonNameList[0];? ? ? ? }? ? ? ? public List<StuLessonUI> GetStuChoiceLessonNameList()? ? ? ? { return StuChoiceLessonNameList; }
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關(guān)注
  • 1358 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)