I have a grid which is heavily reused in many views of the app, with and without the header. I needed it to be configurable from the outside, so in my MyGridPanel class I've set a variable:

...