private void Subjectbind(string ExamYear, string ExamType) { if (ddlExamYear.SelectedIndex == 0) ExamYear = ddlExamYear.SelectedValue; if (ddlExamType.SelectedIndex == 0) ExamType = ddlExamType.SelectedValue; List lstCourses = objMDLClass.GetAllExamTypeCourses(Convert.ToInt32(ExamType), ExamYear); objManage = new StudentManage((Users)Session["user"]); foreach (SpGetExamTypeCourses_Result objCourse in lstCourses) { GridTemplateColumn col = new GridTemplateColumn(); col.UniqueName = objCourse.CourseId.ToString(); col.HeaderText = objCourse.CourseName; col.ItemTemplate = new GridCustomItemTemplate(objManage.GetExamAnalysisReport( Convert.ToInt32(objCourse.CourseId), Convert.ToInt32(ExamType), ExamYear)); gvSubwisePerformance.MasterTableView.Columns.Add(col); } gvSubwisePerformance.Rebind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)