1 Reply Latest reply on Oct 2, 2007 10:14 PM by mnarra

    Showup external Array's value in DataGrid Column

    mnarra
      Hi All,

      I have a ArrayCollectioon which is binded to <mx:DataGrid/>.

      I have another ArrayCollection object which has some records that match with one of the fields in 1st ArrayCollection Object.

      My scenerio is, based upon the value in the datafield of 1st ArrayCollection in DataGrid, i need to showup the 2nd ArrayCollection value in the Grid Column.

      <mx:ArrayCollection id="departments"/>
      <mx:ArrayCollection id="employees"/>

      <mx:DataGrid id="dgEmployee" dataProvider="{employees}">
      <mx:columns>
      <mx:DataGridColumn dataField="departmentID" headerText="Department">
      <!--
      Need to show up the label set in "departments" object based upon the datafield "departmentID"
      -->
      </mx:DataGridColumn>
      </mx:columns>
      </mx:DataGrid>

      Hope if you can understand my scenerio..

      Please help me over this

      Regards,
      Madan N