Revision #3 was created by Steve Friedl on Mar 12, 2011, 6:24:10 PM.
Added tydeas to the acknowledgements
Content
This tip created in conjunction with IRC #yii channel users **emilsedgh** and **tydeas** - 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).