grid: add render-header-buttons method.