How can I have a select control in a DataTable which options is taken from the row item itself?

Suppose I am teaching a class of students, and each class has a top student.

I will like to display the name of each class in a DataTable, and to have a select box, for each class, to select the top student. Each class item will have a list of students that belongs to it.

How can I have the select box to display the students belonging to the class, for the row that the class is on?