Revision #3 has been created by Steve Friedl on Mar 12, 2011, 6:24:10 PM with the memo:
Added tydeas to the acknowledgements
« previous (#2) next (#5) »
Keeping a running total in a CGridView
This tip created in conjunction with IRC #yii channel user
**emilsedgh** - thanks!
When using [CGridView] to display rows of data, each one is independent of the other - this is normally what we want. But a cases requiring a running total (say, the current balance in a bank account register or a running inventory count) are more tricky because of no shared context.
This How-to introduces the [CGridColumn] component and how to extend it to provide this running total (which may inspire other uses as well).