If the grid is called Stock, then:-
<cfsavecontent variable="gridtotaller">
var total=0;
for(var i = 0; i < datagrid.dataprovider.length; i++)
{
total = total + stock.dataprovider[i]["columname"];
}
total_field = total;
</cfsavecontent>
...
<cfgrid name="stock"... onChange="#gridtotaller#">...</cfgrid>
The attribute dataprovider is an array objects that is used to display
the values in the rows and the attribute names in each row object
should match each of the <cfgridcolumn name="..."> tags.
Chris
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/