grid class change to its child class