private function updateSubcolumnsDefinition($gridId, $type)
    {
        $grid = Factory::createById($gridId);

        $GLOBALS['TL_SUBCL'][static::$name]['sets'][$type] = $this->prepareContainer($grid);

        if ($grid->getRowClass()) {
            $GLOBALS['TL_SUBCL'][static::$name]['scclass'] = 'row ' . $grid->getRowClass();
        } else {
            $GLOBALS['TL_SUBCL'][static::$name]['scclass'] = 'row';
        }
    }