0 Replies Latest reply on Feb 7, 2012 3:13 AM by ibran.pb

    add datagrid column values


      hello every one.

      this is IBRAN, i am using datagrid in my flex application now i want to add only one column data and i want to display it in textinput,

      please help me i am trying this from last 7 days please please help me,

      this is my datagrid that how i defined-


      <mx:DataGrid id="neworderdetails" width="839" height="400" editable="true" visible="false" itemClick="editablefunc(event)" variableRowHeight="true"

                                                         draggableColumns="false" sortableColumns="false" >


                                              <mx:DataGridColumn headerText="Product Barcode" dataField="ABarcode"/>

                                              <mx:DataGridColumn headerText="Product Description" dataField="BDescription"/>

                                              <mx:DataGridColumn headerText="Ordering Quantity" dataField="COrderingQty"/>

                                              <mx:DataGridColumn headerText="Max Quantity" dataField="DMaxQty"/>

                                              <mx:DataGridColumn headerText="Current Quantity" dataField="ECurrentQty"/>

                                              <mx:DataGridColumn headerText="Cost" dataField="FCost"/>

                                              <mx:DataGridColumn headerText="MRP" dataField="GMrp"/>

                                              <mx:DataGridColumn headerText="Total Discount" dataField="HDiscount"/>

                                              <mx:DataGridColumn headerText="VAT" dataField="IVat"/>

                                              <mx:DataGridColumn headerText="Amount"  dataField="GAmount" labelFunction="{Amount}"/>





      and one more thing, I am using labelFunction Amount i am calculating amount by multiplying two columns of datagrid this is working fine

      now i want to add the only Amount column values one by one and i want to display result as total amount in one textInput.


      please please help me for this problem.



      thank you.