Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-23-2007, 05:10 PM   #1
jjyang
Registered User
 
Join Date: Jul 2007
Posts: 3
Default 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
jjyang is offline   Reply With Quote
Old 10-23-2007, 05:19 PM   #2
box86rowh
FLEX AND FLASH ARE COOL
 
Join Date: Oct 2005
Posts: 794
Default

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.
box86rowh is offline   Reply With Quote
Old 10-23-2007, 07:51 PM   #3
jjyang
Registered User
 
Join Date: Jul 2007
Posts: 3
Default

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
jjyang is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid Hide rows? Ryze Components 0 05-26-2006 07:41 PM
Blank Rows In DataGrid brixel Components 0 05-05-2006 07:41 PM
Spanning Columns in Datagrid kjake Components 1 03-22-2006 05:43 PM
Hidden rows in DataGrid do not respond well to cellPress xbrotherx Components 1 02-10-2005 07:53 PM
DataGrid and limiting columns jkemrich Components 1 12-30-2003 06:00 PM


All times are GMT. The time now is 03:49 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.