[NF] Enum GridTemplate replace with class Grid.