4 Replies Latest reply on Nov 29, 2006 3:32 PM by jfillman

    AddItem to grid from another grid

    jfillman Level 1
      I have two data grids. The first one has a list of items. If the user clicks on one of the rows in the first grid, it needs to get inserted into the second data grid. This is my code from ColdFusion, but addItem is not a defined method in Flex.

      function axisAdd(){
      var anObject = {Code: grid1.selectedItem.Code,Code_Description: grid2.selectedItem.Code_Description}
      selectedGrid.addItem(anObject);
      }