protected void rgSchoolProgram_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { DayCareBAL.SchoolProgramService proxySchoolProgram = new DayCareBAL.SchoolProgramService(); //Guid SchoolId = new Guid(); //if (Session["SchoolId"] != null) // { // SchoolId = new Guid(Session["SchoolId"].ToString()); // } //Guid CurrentSchoolYearId = new Guid(); //if (Session["CurrentSchoolYearId"] != null) //{ // CurrentSchoolYearId = new Guid(Session["CurrentSchoolYearId"].ToString()); // } rgSchoolProgram.DataSource = proxySchoolProgram.LoadSchoolProgram(GetSchoolId(), GetCurrentSchoolYearId()); }