Revision #6                                    has been created by 
 tydeas_dr                                    on May 2, 2011, 11:52:40 AM with the memo:
                                
                                
                                    corrected syntax error                                
                                                                    « previous (#5)                                                                                            
                            Changes
                            
    Title
    unchanged
    Keeping a running total in a CGridView
    Category
    unchanged
    How-tos
    Yii version
    unchanged
    
    Tags
    unchanged
    CGridView
    Content
    changed
    [...]
public $type = 'number'; //If you want to be able to access it.
    ...
    public function renderDataCellContent($row, $data) {
        $this->_total += $data->{$this->attribute};
 
        echo (isset($this->type)) ?  $ $this->grid->getFormatter()->format($this->_total, $this->type) : this->_total;
    }
}
```