Custom row class for index

Completed #2794