/// <summary>
        /// Check on checkbox for a course by looking up course Id in the choose course section
        /// </summary>
        public void SelectChooseCourseByRow()
        {
            int rowIndex = Data.RowNumber;

            if (rowIndex > 0)
            {
                EditAssignmentCourseRow row = (EditAssignmentCourseRow)ChooseCourseGrid.GetRowFromList(rowIndex);
                row.Check();
            }
        }
        /// <summary>
        /// Select X results per page in the choose course section
        /// </summary>
        public EditAssignmentCoursePage SelectChooseCourseResultsPerPage()
        {
            if (ChooseCourseGrid == null)
            {
                InitElements();
                ChooseCourseGrid.SetGridLists();
            }

            ChooseCourseGrid.SelectResultsPerPage(Data.ResultsPerPage);
            //page postback
            return(new EditAssignmentCoursePage());
        }
        /// <summary>
        /// Check on checkbox for a course by looking up course Id in the choose course section
        /// </summary>
        public void SelectChooseCourseByCourseId()
        {
            string courseToFind = Data.CourseId;

            if (ChooseCourseGrid == null)
            {
                InitElements();
                ChooseCourseGrid.SetGridLists();
            }

            List <EditAssignmentCourseRow> courseFound =
                ChooseCourseGrid.GetsRowsContainingTextToFindFromList(EditAssignmentCourseColumnNames.CourseId,
                                                                      courseToFind);

            foreach (var row in courseFound)
            {
                Report.Write("Found course id " + courseToFind + ". Row Index: " + row.Index + ". Attempting to select this course.");
                row.Check();
                break;
            }
        }