Called by the framework when the grid row is being expanded or collapsed
This function is called by the framework when the grid row is being expanded or collapsed, before the grid is repainted.