Home Tutorials Forums Articles Blogs Movies Library Employment Press

 ActionScript.org Forums Calculate: sum up columns or rows in datagrid(not in the advanced datagrid)
 Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

 10-23-2007, 05:10 PM #1 jjyang Registered User   Join Date: Jul 2007 Posts: 3 Calculate: sum up columns or rows in datagrid(not in the advanced datagrid) Hi guys, i have 3 cells(1,1,1) in the datagrid. they are in 3 different columns. i would like add them up and show the sum in the 4th column. i dont really have an idea. any advice. (i am trying not to use advanced datagrid.) thanks in advance. mike
 10-23-2007, 05:19 PM #2 box86rowh FLEX AND FLASH ARE COOL   Join Date: Oct 2005 Posts: 794 you could use a for loop starting with zero and ending 1 short of the number of rows, and build the running total and put that total in the final cell.
 10-23-2007, 07:51 PM #3 jjyang Registered User   Join Date: Jul 2007 Posts: 3 hi, thank you for the reply. i think i did not make myself understand. i was thinking that 1 (col_1), 1(col_2), 1(col_3) and i want to add col_1 to col_3 together and show the sum in col_4. hopefully you can understand me and give me another idea. thanks really Mike

 Thread Tools Display Modes Rate This Thread Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home ActionScript Forums Group     ActionScript 3.0     ActionScript 2.0     ActionScript 1.0 (and below)     Simple Stuff (Newbies) Flash General Questions     Flash 10 General Questions     Flash 9 General Questions     Flash 8 General Questions     Other Flash General Questions Flex     Flex 2, 3 & 4     Flex 1 Extensions and Plugins     Components     JSFL - Extending Flash Desktop, Mobile and non-browser Environments     AIR (Apollo)     FlashLite / Portable Devices Development     Projectors and CDs Supporting Technologies     HTML and JavaScript     haXe     Server-Side Scripting     Flash Remoting     Flash Media Server General     Best Practices     Gaming and Game Development     Animation and Effects     Flashants Support Forum Community Boards     General Chat     Just for Kicks Challenges     Detention Flash In Action     Site Check     Cool Sites     Widgets Decommissioned     Projects and Positions CMS Forums     Announcements Board     Content Postings / Updates     Product Review Requests     CMS Technical Questions     Process Questions     Collaboration & Suggested Articles

 Similar Threads Thread Thread Starter Forum Replies Last Post Ryze Components 0 05-26-2006 07:41 PM brixel Components 0 05-05-2006 07:41 PM kjake Components 1 03-22-2006 05:43 PM xbrotherx Components 1 02-10-2005 07:53 PM jkemrich Components 1 12-30-2003 06:00 PM

All times are GMT. The time now is 08:33 AM.

///