Because of the changes of rules of how the grades have to be published in the university, we need the Gradebook to have an option to show all the grades to all the students. I mean, one student would see the grades of the rest of the classmates, in order of transparency and other pedagogical matters.
Probably the best way is to offer an option to the instructor to chosse, may be with a property in the code.
I attach a recreation of what could be.
The output would be similar to the display of the instructor, without the edition options.