lib/components/web/widgets/grid/View.php
protected function createGridColumn($text)
    {
        if (!preg_match('/^([\w\.]+)(:(\w*))?(:(.*))?$/', $text, $matches)) {
            throw new Exception(Yii::t('zii', 'The column must be specified in the format of "Name:Type:Label", where "Type" and "Label" are optional.'));
        }
        $column = new DataColumn($this);
        $column->name = $matches[1];
        if (isset($matches[3]) && $matches[3] !== '') {
            $column->type = $matches[3];
        }
        if (isset($matches[5])) {
            $column->header = $matches[5];
        }

        return $column;
    }
protected function createGridColumn($text)
    {
        if (!preg_match('/^([\w\.]+)(:(\w*))?(:(.*))?$/', $text, $matches)) {
            throw new Exception(Yii::t('zii', 'The column must be specified in the format of "Name:Type:Label", where "Type" and "Label" are optional.'));
        }
        $column = new DataColumn($this);
        $column->name = $matches[1];
        if (isset($matches[3]) && $matches[3] !== '') {
            $column->type = $matches[3];
        }
        if (isset($matches[5])) {
            $column->header = $matches[5];
        }

        return $column;
    }
[[@doctodo method_description:createGridColumn]].

@param [[@doctodo param_type:text]] $text [[@doctodo param_description:text]]

@throws Exception [[@doctodo exception_description:Exception]]
@return [[@doctodo return_type:createGridColumn]] [[@doctodo return_description:createGridColumn]]