// This method is to load the data in to the gridview.
    public void LoadDataToGridView()
    {
        string    Role         = utiliFuntions.checkIFStudentorProfessor(User.Identity.Name);
        string    UserID       = CourseConnectAccess.getUserID(Role, User.Identity.Name);
        string    testUserID   = Profile.userID;
        DataTable commnetsData = CourseConnectAccess.getCommentsByID(UserID);

        PC_GV_Comments.DataSource = commnetsData;
        PC_GV_Comments.DataBind();
    }
 protected void PC_GV_Comments_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
 {
     PC_GV_Comments.EditIndex = -1;
     PC_GV_Comments.DataBind();
 }
 protected void PC_GV_Comments_RowEditing(object sender, GridViewEditEventArgs e)
 {
     PC_GV_Comments.EditIndex = e.NewEditIndex;
     PC_GV_Comments.DataBind();
 }