4 Replies Latest reply on Apr 27, 2009 11:06 AM by anu3000

    Data grid to have a drag/drop functionality to re arrange the items in the data grid (move up and down)

    anu3000 Level 1


      I got Datagrid as following and showing 2 columns keywordDisplay,shortDescription.

      Can anybody tell me why iam unable to rearrange items in the datagrdi though i got

      dragEnabled="true" dragMoveEnabled="true" dropEnabled="true".

      Any suggestions are welcome..



        <mx:DataGrid id="commandAdd"
           wordWrap="true" variableRowHeight="true"
           width="100%" height="100%"
           doubleClickEnabled="true" doubleClick="removeItems()"
           dragEnabled="true" dragMoveEnabled="true" dropEnabled="true"
           allowMultipleSelection="true" dataProvider="{commandSelectedDgArr}">
            <mx:DataGridColumn dataField="commandId" visible="false"/>
            <mx:DataGridColumn dataField="keyword" width="0" visible="false"/>
            <mx:DataGridColumn dataField="keywordDisplay" width="100"/>
            <mx:DataGridColumn dataField="shortDescription" showDataTips="true"/>