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..
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);
}
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/