Not hyphenated:
a first grader
ninth grader Sam
10th grader
12th grader
but a third-grade child
a 12th-grade student