1 Reply Latest reply on Oct 11, 2006 2:20 PM by ntsiii

    Flex Data Grid

    MahePya Level 1
      Hi,

      I'm using Data grid in my application. I want to calculate the particluar column values while clicking the button. I tried to get the rows in Data Grid. But i can't.

      I need the action script for data grid to get the rows values.

      Thanks in advance.

      Mahe.
        • 1. Re: Flex Data Grid
          ntsiii Level 3
          You must work with the underlying dataProvider. You cannot use the rows of the DataGrid itself.

          DataGrid.selectedItem will return a reference to the dataProvider item that produced the row.

          To total a column, you could do a for loop on the dataprovider and add up the property values you want.

          Tracy