GridView.php
public function getData() {
        $data = $this->dataProvider->getData();
        unset($value);
        foreach($data as &$value) {
            foreach($this->columns as $column) {
                // 自定义value
                if(isset($column['value'])) {
                    $value->$column['name'] = $this->evaluateExpression($column['value'],array('data'=>$value));
                } elseif(isset($column['buttons']) && is_array($column['buttons'])) {
                    $value->{'__BUTTONS_HTML__'} = $this->_getButtons($column['buttons'],$value);
                }
            }
        }
        return $data;
    }
public function getData() {
        $data = $this->dataProvider->getData();
        unset($value);
        foreach($data as &$value) {
            foreach($this->columns as $column) {
                // 自定义value
                if(isset($column['value'])) {
                    $value->$column['name'] = $this->evaluateExpression($column['value'],array('data'=>$value));
                } elseif(isset($column['buttons']) && is_array($column['buttons'])) {
                    $value->{'__BUTTONS_HTML__'} = $this->_getButtons($column['buttons'],$value);
                }
            }
        }
        return $data;
    }
get data
@return array the gridview data