/// <summary> /// Lists all modules in the selected course /// </summary> private DataTable GetModuleRule() { // Unit used to gather the module rules BusinessServices.Unit objUnit = new BusinessServices.Unit(); // Holds the selected course id int intCourseID = int.Parse(this.cboCourse.SelectedValue); DataTable dtbModules = objUnit.GetModuleRule(this.m_intUnitID, intCourseID); this.grdModules.DataSource = dtbModules; this.grdModules.DataKeyField = "ModuleID"; this.grdModules.DataBind(); return(dtbModules); }