There is nothing built in that will do this. You will need to create a custom component. I'd start with a DataGrid for the normal data and then use another datagrid or some other controls (textInput) to display the totals.
I seem to recall someone did something like this. Here, let me google.... ... well couldn't find it. I did find a static columns example: http://www.richinternetapps.com/archives/000101.html You might want to look a little harder than I did. This should not be too hard though. You can make it more complex by allowing resizable columns and adjusting the width of the totals row columns. Also, you probably want to specify which columns have totals. Sounds like a fun project, wish I wasn't too busy to do it. Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Sent: Tuesday, September 06, 2005 6:43 PM To: [email protected] Subject: [flexcoders] data grid with totals I have a data grid that I would like to display totals for. I would like to display the totals of certain columns at the bottom in a seperate row. I still need to be able to sort with and keep the totals at the bottom. <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:DataGrid id="datagrid1" > <mx:Model id="TestSource" source="test.xml"/> <mx:dataProvider>{TestSource.testinfo}</mx:dataProvider> <mx:columns> <mx:Array> <mx:DataGridColumn headerText="name" columnName="name" /> <mx:DataGridColumn headerText="age" columnName="age" /> <mx:DataGridColumn headerText="weight" columnName="weight" /> </mx:Array> </mx:columns> </mx:DataGrid> </mx:Application> <test> <testinfo> <name>name 1</name> <age>32</age> <weight>200</weight> </testinfo> <testinfo> <name>name 2</name> <age>40</age> <weight>100</weight> </testinfo> <testinfo> <name>name 3</name> <age>23</age> <weight>150</weight> </testinfo> <testinfo> <name>name 2</name> <age>55</age> <weight>330</weight> </testinfo> </test> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

