Setting the dragMoveEnabled property to move instead of copy
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="white">
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
public var myAC:ArrayCollection = new ArrayCollection([
{name:"A", email:"j@domain.com",url:"http://www.f.com"},
{name:"B", email:"t@domain.com",url:"http://www.d.com"},
{name:"C", email:"a@domain.com",url:"http://www.a.com"},
{name:"D", email:"f@domain.com",url:"http://www.g.com"},
{name:"E", email:"f@domain.com",url:"http://www.w.com"}
]);
</mx:Script>
<mx:DataGrid id="dgSource" dataProvider="{myAC}" dragEnabled="true" dragMoveEnabled="true">
<mx:columns>
<mx:DataGridColumn dataField="name" headerText="Contact Name" width="300" />
<mx:DataGridColumn dataField="email" headerText="E-Mail" width="200" />
<mx:DataGridColumn dataField="url" headerText="URL" width="200" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
Related examples in the same category