protected void BindCourseDetails(int studentID) { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.IntStudentID = studentID; objBECommon.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID]); objBCommon.BGetStudentCourseDetails(objBECommon); if (objBECommon.DtResult.Rows.Count > 0) { gvStudentExamStatus.DataSource = objBECommon.DtResult; } else { gvStudentExamStatus.DataSource = new string[] { } }; }