header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
flexmember
Points:0
Posts:0

5/3/2010 6:11:39 AM

Title: how to add column value in datagrid


Hi i have developed a data grid with 3 columns...Now i need to calculate some of all values(numeric) in a particular column of grid when i click on a radio button which is in header field..

Can anyone send me sample example for this or any useful URL..
Please..
Thanks in advance:)
its little urgent..



1
Andrid
Points: 720
Posts:0
5/3/2010 7:09:30 AM



just use a loop to get the value from dataprovider of dataGrid and add it

//here number colum is your numeric data colum
for each (var row:Object in myNumDatGrid.dataProvider) {
	total += Number(row.NumberColum);
}

2
DevSachin
Points: 0
Posts:0
5/5/2010 4:11:23 AM



You should use groupingCollection2 and grouping feature of AdvancedDataGrid.
http://flexpearls.blogspot.com/2007/11/customizing-grouping-using.html

Thanks
Sachin Dev Tripathi
http://devsachinonflex.blogspot.com/



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 6+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions