0 Replies Latest reply on Apr 3, 2008 12:59 AM by Rupesh Bajaj

    Drag Drop Problem in DataGrid

    Rupesh Bajaj
      Hi All,
      I am three List objects and One DataGrid, My requirement is to Select the element from the 3rd List and drop that on the Data Grid, the Data grid has 3 columns which contains the value from each of the List.
      The first Drop is working fine, but the subsequent drops are adding 2 rows in the DataGrid with one Blank row,
      Here is the code that I am calling on DragDrop on DataGrid

      var dropTarget:DataGrid=DataGrid(event.currentTarget);
      var DataSource:String="";
      var TableName:String="";
      var ColName:String="";
      doDragExit(event);
      DataSource=DataSource_List.selectedItem.SERVER_NAME;
      TableName=Table_List.selectedItem.GroupName;
      ColName=Column_List.selectedItem.TagName;

      rowObject=null;// Defined at the top
      rowObject=new Object();
      rowObject.DataSource=DataSource;
      rowObject.TableName=TableName;
      rowObject.ColName=ColName;
      row.push(rowObject);

      The Data provider for Grid is Defiined as
      [Bindable]
      private var dataSourceDetails:ArrayCollection= new ArrayCollection(row);

      Is there any issue in the code.