PORTLAND — Portland High School’s homecoming dance drew nearly 500 students Saturday night despite a ban on the controversial dancing style known as grinding.

The senior class and student council sold 497 tickets to the annual event, which usually attracts 325 to 350 students from the 1,000-student school, said Principal Mike Johnson.

Johnson said he stopped the DJ’s music once and reminded students of the ban when some of them appeared to be on the verge of grinding, which usually involves boys dancing closely behind girls and rubbing pelvises.

Otherwise, students found acceptable ways to dance and the gym was packed until the four-hour event ended at 11 p.m., Johnson said.

“The students were very respectful about the whole thing,” he said. “Even the ones who disagreed with me.”