protected function renderColumn($column, $index)
    {
        if (is_string($this->template)) {
            return strtr($this->template, [
                '{label}' => $column->renderHeaderCell(),
                '{value}' => $column->renderDataCell($this->model, $this->model->getPrimaryKey(), 0),
            ]);
        }

        return call_user_func($this->template, $column, $index, $this);
    }
protected function renderColumn($column, $index)
    {
        if (is_string($this->template)) {
            return strtr($this->template, [
                '{label}' => $column->renderHeaderCell(),
                '{value}' => $column->renderDataCell($this->model, $this->model->getPrimaryKey(), 0),
            ]);
        }

        return call_user_func($this->template, $column, $index, $this);
    }
protected function renderColumn ( $ column , $ index ) { if ( is_string ( $ this -> template ) ) { return strtr ( $ this -> template , [ '{label}' => $ column -> renderHeaderCell ( ) , '{value}' => $ column -> renderDataCell ( $ this -> model , $ this -> model -> getPrimaryKey ( ) , 0 ) , ] ) ; } return call_user_func ( $ this -> template , $ column , $ index , $ this ) ; }
Renders a single column.

@param DataColumn $column the specification of the column to be rendered
@param int $index the zero-based index of the column in the [[columns]] array

@return string the rendering result
Renders a single column .